=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winevdm: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Thu Sep 26 15:44:07 CDT 2013


Module: wine
Branch: master
Commit: 8683b6dee5e9d7edeaa50c7cf5580ebeec4cdd1a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8683b6dee5e9d7edeaa50c7cf5580ebeec4cdd1a

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Sep 26 08:42:50 2013 +0200

winevdm: Use BOOL type where appropriate.

---

 programs/winevdm/winevdm.c |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c
index b818d76..290ad25 100644
--- a/programs/winevdm/winevdm.c
+++ b/programs/winevdm/winevdm.c
@@ -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;
             }




More information about the wine-cvs mailing list