kernel32: Use BOOL type where appropriate.
This commit is contained in:
parent
4e0e9ca84a
commit
6918c86544
@ -738,19 +738,20 @@ static BOOL build_command_line( WCHAR **argv )
|
|||||||
len = 0;
|
len = 0;
|
||||||
for (arg = argv; *arg; arg++)
|
for (arg = argv; *arg; arg++)
|
||||||
{
|
{
|
||||||
int has_space,bcount;
|
BOOL has_space;
|
||||||
|
int bcount;
|
||||||
WCHAR* a;
|
WCHAR* a;
|
||||||
|
|
||||||
has_space=0;
|
has_space=FALSE;
|
||||||
bcount=0;
|
bcount=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
if( !*a ) has_space=1;
|
if( !*a ) has_space=TRUE;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a=='\\') {
|
if (*a=='\\') {
|
||||||
bcount++;
|
bcount++;
|
||||||
} else {
|
} else {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=1;
|
has_space=TRUE;
|
||||||
} else if (*a=='"') {
|
} else if (*a=='"') {
|
||||||
/* doubling of '\' preceding a '"',
|
/* doubling of '\' preceding a '"',
|
||||||
* plus escaping of said '"'
|
* plus escaping of said '"'
|
||||||
@ -774,20 +775,20 @@ static BOOL build_command_line( WCHAR **argv )
|
|||||||
rupp->CommandLine.MaximumLength = len * sizeof(WCHAR);
|
rupp->CommandLine.MaximumLength = len * sizeof(WCHAR);
|
||||||
for (arg = argv; *arg; arg++)
|
for (arg = argv; *arg; arg++)
|
||||||
{
|
{
|
||||||
int has_space,has_quote;
|
BOOL has_space,has_quote;
|
||||||
WCHAR* a;
|
WCHAR* a;
|
||||||
|
|
||||||
/* Check for quotes and spaces in this argument */
|
/* Check for quotes and spaces in this argument */
|
||||||
has_space=has_quote=0;
|
has_space=has_quote=FALSE;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
if( !*a ) has_space=1;
|
if( !*a ) has_space=TRUE;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=1;
|
has_space=TRUE;
|
||||||
if (has_quote)
|
if (has_quote)
|
||||||
break;
|
break;
|
||||||
} else if (*a=='"') {
|
} else if (*a=='"') {
|
||||||
has_quote=1;
|
has_quote=TRUE;
|
||||||
if (has_space)
|
if (has_space)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user