Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b32c643c
Commit
b32c643c
authored
Jun 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle escaped double quotes in command line parsing.
parent
2cbeb20d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
action.c
dlls/msi/action.c
+2
-2
install.c
dlls/msi/tests/install.c
+12
-0
No files found.
dlls/msi/action.c
View file @
b32c643c
...
...
@@ -229,7 +229,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
break
;
case
'"'
:
state
=
state_quote
;
if
(
in_quotes
)
count
--
;
if
(
in_quotes
&&
p
[
1
]
!=
'\"'
)
count
--
;
else
count
++
;
break
;
default:
...
...
@@ -267,7 +267,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
switch
(
*
p
)
{
case
'"'
:
if
(
in_quotes
)
count
--
;
if
(
in_quotes
&&
p
[
1
]
!=
'\"'
)
count
--
;
else
count
++
;
break
;
case
' '
:
...
...
dlls/msi/tests/install.c
View file @
b32c643c
...
...
@@ -6350,6 +6350,18 @@ static void test_command_line_parsing(void)
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
cmd
=
"P=
\"\"\"
one
\"\"\"
Q=
\"
two
\"
"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cmd
=
"P=
\"
one
\"\"
two
\"\"\"
Q=
\"
three
\"
"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cmd
=
"P=
\"\"\"
one
\"\"
two
\"
Q=
\"
three
\"
"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
DeleteFile
(
msifile
);
RemoveDirectory
(
"msitest"
);
}
...
...
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