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
4aca381f
Commit
4aca381f
authored
Oct 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Only append a backslash to directories.
parent
7497f1ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
appsearch.c
dlls/msi/appsearch.c
+4
-1
package.c
dlls/msi/tests/package.c
+2
-8
No files found.
dlls/msi/appsearch.c
View file @
4aca381f
...
...
@@ -837,6 +837,7 @@ static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig,
LPCWSTR
path
,
int
depth
,
LPWSTR
*
appValue
)
{
UINT
rc
;
DWORD
attr
;
LPWSTR
val
=
NULL
;
TRACE
(
"%p, %p, %s, %d, %p
\n
"
,
package
,
sig
,
debugstr_w
(
path
),
depth
,
...
...
@@ -881,7 +882,9 @@ static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig,
}
}
if
(
val
&&
val
[
lstrlenW
(
val
)
-
1
]
!=
'\\'
)
attr
=
GetFileAttributesW
(
val
);
if
((
attr
&
FILE_ATTRIBUTE_DIRECTORY
)
&&
val
&&
val
[
lstrlenW
(
val
)
-
1
]
!=
'\\'
)
{
val
=
msi_realloc
(
val
,
(
lstrlenW
(
val
)
+
2
)
*
sizeof
(
WCHAR
));
if
(
!
val
)
...
...
dlls/msi/tests/package.c
View file @
4aca381f
...
...
@@ -7135,10 +7135,7 @@ static void test_appsearch_drlocator(void)
sprintf
(
path
,
"%s
\\
FileName1"
,
CURR_DIR
);
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP1"
,
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
);
...
...
@@ -7187,10 +7184,7 @@ static void test_appsearch_drlocator(void)
sprintf
(
path
,
"%s
\\
FileName3.dll"
,
CURR_DIR
);
r
=
MsiGetPropertyA
(
hpkg
,
"SIGPROP8"
,
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
,
"SIGPROP9"
,
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