Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3adf1e4e
Commit
3adf1e4e
authored
Oct 16, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Append a backslash to the AppSearch directory path.
parent
b3f23da2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
22 deletions
+14
-22
appsearch.c
dlls/msi/appsearch.c
+12
-14
package.c
dlls/msi/tests/package.c
+2
-8
No files found.
dlls/msi/appsearch.c
View file @
3adf1e4e
...
...
@@ -799,10 +799,12 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU
'D'
,
'r'
,
'L'
,
'o'
,
'c'
,
'a'
,
't'
,
'o'
,
'r'
,
' '
,
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'S'
,
'i'
,
'g'
,
'n'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
LPWSTR
parentName
=
NULL
,
path
=
NULL
,
parent
=
NULL
;
LPWSTR
parentName
=
NULL
,
parent
=
NULL
;
WCHAR
path
[
MAX_PATH
];
WCHAR
expanded
[
MAX_PATH
];
MSIRECORD
*
row
;
int
depth
;
DWORD
sz
;
UINT
rc
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
sig
->
Name
));
...
...
@@ -829,33 +831,29 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNATU
ACTION_FreeSignature
(
&
parentSig
);
msi_free
(
parentName
);
}
/* now look for path */
path
=
msi_dup_record_field
(
row
,
3
);
sz
=
MAX_PATH
;
MSI_RecordGetStringW
(
row
,
3
,
path
,
&
sz
);
if
(
MSI_RecordIsNull
(
row
,
4
))
depth
=
0
;
else
depth
=
MSI_RecordGetInteger
(
row
,
4
);
ACTION_ExpandAnyPath
(
package
,
path
,
expanded
,
MAX_PATH
);
msi_free
(
path
);
if
(
parent
)
{
path
=
msi_alloc
((
strlenW
(
parent
)
+
strlenW
(
expanded
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
path
)
{
rc
=
ERROR_OUTOFMEMORY
;
goto
end
;
}
strcpyW
(
path
,
parent
);
strcatW
(
path
,
expanded
);
}
else
path
=
expanded
;
strcpyW
(
path
,
expanded
);
PathAddBackslashW
(
path
);
rc
=
ACTION_SearchDirectory
(
package
,
sig
,
path
,
depth
,
appValue
);
end:
if
(
path
!=
expanded
)
msi_free
(
path
);
msi_free
(
parent
);
msiobj_release
(
&
row
->
hdr
);
...
...
dlls/msi/tests/package.c
View file @
3adf1e4e
...
...
@@ -6783,19 +6783,13 @@ static void test_appsearch_drlocator(void)
sprintf
(
path
,
"%s
\\
"
,
CURR_DIR
);
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP2"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
size
=
MAX_PATH
;
sprintf
(
path
,
"%s
\\
"
,
CURR_DIR
);
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP3"
,
prop
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
}
ok
(
!
lstrcmpA
(
prop
,
path
),
"Expected
\"
%s
\"
, got
\"
%s
\"\n
"
,
path
,
prop
);
size
=
MAX_PATH
;
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP4"
,
prop
,
&
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment