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
ce0b3a03
Commit
ce0b3a03
authored
Apr 05, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix parsing of an empty property followed by a non-empty property.
parent
ecf217bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
action.c
dlls/msi/action.c
+4
-1
install.c
dlls/msi/tests/install.c
+4
-0
No files found.
dlls/msi/action.c
View file @
ce0b3a03
...
...
@@ -231,6 +231,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
if
(
!
count
)
goto
done
;
in_quotes
=
1
;
ignore
=
1
;
len
++
;
break
;
case
'"'
:
state
=
state_quote
;
...
...
@@ -258,6 +259,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
state
=
state_whitespace
;
if
(
!
count
)
goto
done
;
in_quotes
=
1
;
len
++
;
break
;
default:
if
(
!
count
)
in_quotes
=
0
;
...
...
@@ -276,8 +278,9 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
break
;
case
' '
:
state
=
state_whitespace
;
if
(
!
count
)
goto
done
;
if
(
!
count
||
(
count
>
1
&&
!
len
)
)
goto
done
;
in_quotes
=
1
;
len
++
;
break
;
default:
state
=
state_token
;
...
...
dlls/msi/tests/install.c
View file @
ce0b3a03
...
...
@@ -6346,6 +6346,10 @@ static void test_command_line_parsing(void)
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
cmd
=
"Q=
\"\"
P=
\"
one
\"
"
;
r
=
MsiInstallProductA
(
msifile
,
cmd
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, 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