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
8683b6de
Commit
8683b6de
authored
Sep 26, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevdm: Use BOOL type where appropriate.
parent
6918c865
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
winevdm.c
programs/winevdm/winevdm.c
+10
-9
No files found.
programs/winevdm/winevdm.c
View file @
8683b6de
...
...
@@ -392,19 +392,20 @@ static char *build_command_line( char **argv )
len
=
0
;
for
(
arg
=
argv
;
*
arg
;
arg
++
)
{
int
has_space
,
bcount
;
BOOL
has_space
;
int
bcount
;
char
*
a
;
has_space
=
0
;
has_space
=
FALSE
;
bcount
=
0
;
a
=*
arg
;
if
(
!*
a
)
has_space
=
1
;
if
(
!*
a
)
has_space
=
TRUE
;
while
(
*
a
!=
'\0'
)
{
if
(
*
a
==
'\\'
)
{
bcount
++
;
}
else
{
if
(
*
a
==
' '
||
*
a
==
'\t'
)
{
has_space
=
1
;
has_space
=
TRUE
;
}
else
if
(
*
a
==
'"'
)
{
/* doubling of '\' preceding a '"',
* plus escaping of said '"'
...
...
@@ -427,20 +428,20 @@ static char *build_command_line( char **argv )
*
p
++
=
(
len
<
256
)
?
len
:
255
;
for
(
arg
=
argv
;
*
arg
;
arg
++
)
{
int
has_space
,
has_quote
;
BOOL
has_space
,
has_quote
;
char
*
a
;
/* Check for quotes and spaces in this argument */
has_space
=
has_quote
=
0
;
has_space
=
has_quote
=
FALSE
;
a
=*
arg
;
if
(
!*
a
)
has_space
=
1
;
if
(
!*
a
)
has_space
=
TRUE
;
while
(
*
a
!=
'\0'
)
{
if
(
*
a
==
' '
||
*
a
==
'\t'
)
{
has_space
=
1
;
has_space
=
TRUE
;
if
(
has_quote
)
break
;
}
else
if
(
*
a
==
'"'
)
{
has_quote
=
1
;
has_quote
=
TRUE
;
if
(
has_space
)
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