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

Alexandre Julliard julliard at winehq.org
Mon Oct 7 14:17:11 CDT 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Fri Oct  4 23:32:16 2013 +0200

d3dxof: Use BOOL type where appropriate.

---

 dlls/d3dxof/parsing.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index fa992ce..f7f67c5 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -510,11 +510,11 @@ static BOOL is_name(parse_buffer* buf)
   char tmp[512];
   DWORD pos = 0;
   char c;
-  BOOL error = 0;
+  BOOL error = FALSE;
   while (pos < buf->rem_bytes && !is_separator(c = *(buf->buffer+pos)))
   {
     if (!(((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')) || ((c >= '0') && (c <= '9')) || (c == '_') || (c == '-')))
-      error = 1;
+      error = TRUE;
     if (pos < sizeof(tmp))
         tmp[pos] = c;
     pos++;
@@ -602,7 +602,7 @@ static BOOL is_string(parse_buffer* buf)
   char tmp[512];
   DWORD pos = 0;
   char c;
-  BOOL ok = 0;
+  BOOL ok = FALSE;
 
   if (*buf->buffer != '"')
     return FALSE;
@@ -612,7 +612,7 @@ static BOOL is_string(parse_buffer* buf)
     c = *(buf->buffer+pos+1);
     if (c == '"')
     {
-      ok = 1;
+      ok = TRUE;
       break;
     }
     if (pos < sizeof(tmp))




More information about the wine-cvs mailing list