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
8d58ddfe
Commit
8d58ddfe
authored
Mar 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Accept whitespace-only property values on the command line.
parent
e4d19fc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
action.c
dlls/msi/action.c
+5
-5
install.c
dlls/msi/tests/install.c
+4
-0
No files found.
dlls/msi/action.c
View file @
8d58ddfe
...
...
@@ -276,7 +276,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
break
;
case
' '
:
state
=
state_whitespace
;
if
(
!
count
||
!
len
)
goto
done
;
if
(
!
count
)
goto
done
;
in_quotes
=
1
;
break
;
default:
...
...
@@ -317,7 +317,7 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine,
BOOL
preserve_case
)
{
LPCWSTR
ptr
,
ptr2
;
int
quotes
;
int
num_
quotes
;
DWORD
len
;
WCHAR
*
prop
,
*
val
;
UINT
r
;
...
...
@@ -345,10 +345,10 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine,
ptr2
++
;
while
(
*
ptr2
==
' '
)
ptr2
++
;
quotes
=
0
;
num_
quotes
=
0
;
val
=
msi_alloc
(
(
strlenW
(
ptr2
)
+
1
)
*
sizeof
(
WCHAR
)
);
len
=
parse_prop
(
ptr2
,
val
,
&
quotes
);
if
(
quotes
%
2
)
len
=
parse_prop
(
ptr2
,
val
,
&
num_
quotes
);
if
(
num_
quotes
%
2
)
{
WARN
(
"unbalanced quotes
\n
"
);
msi_free
(
val
);
...
...
dlls/msi/tests/install.c
View file @
8d58ddfe
...
...
@@ -6282,6 +6282,10 @@ static void test_command_line_parsing(void)
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cmd
=
"P=
\"
\"
"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cmd
=
"P=one"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
...
...
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