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
8793b5fe
Commit
8793b5fe
authored
Oct 26, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use BOOL type where appropriate.
parent
468be8b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
action.c
dlls/msi/action.c
+12
-11
No files found.
dlls/msi/action.c
View file @
8793b5fe
...
...
@@ -211,19 +211,20 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
enum
parse_state
state
=
state_quote
;
const
WCHAR
*
p
;
WCHAR
*
out
=
value
;
int
ignore
,
in_quotes
=
0
,
count
=
0
,
len
=
0
;
BOOL
ignore
,
in_quotes
=
FALSE
;
int
count
=
0
,
len
=
0
;
for
(
p
=
str
;
*
p
;
p
++
)
{
ignore
=
0
;
ignore
=
FALSE
;
switch
(
state
)
{
case
state_whitespace
:
switch
(
*
p
)
{
case
' '
:
in_quotes
=
1
;
ignore
=
1
;
in_quotes
=
TRUE
;
ignore
=
TRUE
;
len
++
;
break
;
case
'"'
:
...
...
@@ -233,7 +234,7 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
break
;
default:
state
=
state_token
;
in_quotes
=
1
;
in_quotes
=
TRUE
;
len
++
;
break
;
}
...
...
@@ -250,12 +251,12 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
case
' '
:
state
=
state_whitespace
;
if
(
!
count
)
goto
done
;
in_quotes
=
1
;
in_quotes
=
TRUE
;
len
++
;
break
;
default:
if
(
!
count
)
in_quotes
=
0
;
else
in_quotes
=
1
;
if
(
!
count
)
in_quotes
=
FALSE
;
else
in_quotes
=
TRUE
;
len
++
;
break
;
}
...
...
@@ -271,13 +272,13 @@ static int parse_prop( const WCHAR *str, WCHAR *value, int *quotes )
case
' '
:
state
=
state_whitespace
;
if
(
!
count
||
(
count
>
1
&&
!
len
))
goto
done
;
in_quotes
=
1
;
in_quotes
=
TRUE
;
len
++
;
break
;
default:
state
=
state_token
;
if
(
!
count
)
in_quotes
=
0
;
else
in_quotes
=
1
;
if
(
!
count
)
in_quotes
=
FALSE
;
else
in_quotes
=
TRUE
;
len
++
;
break
;
}
...
...
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