msvcrt: Use BOOL type where appropriate

Frédéric Delanoy frederic.delanoy at gmail.com
Wed Oct 30 16:00:11 CDT 2013


---
 dlls/msvcrt/cppexcept.h | 2 +-
 dlls/msvcrt/wcs.c       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h
index 7947a17..16a6e16 100644
--- a/dlls/msvcrt/cppexcept.h
+++ b/dlls/msvcrt/cppexcept.h
@@ -41,7 +41,7 @@ typedef struct __exception
 {
   const vtable_ptr *vtable;
   char             *name;    /* Name of this exception, always a new copy for each object */
-  int               do_free; /* Whether to free 'name' in our dtor */
+  BOOL              do_free; /* Whether to free 'name' in our dtor */
 } exception;
 
 typedef void (*cxx_copy_ctor)(void);
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c
index 97d916f..3f85a84 100644
--- a/dlls/msvcrt/wcs.c
+++ b/dlls/msvcrt/wcs.c
@@ -1895,7 +1895,7 @@ MSVCRT_wchar_t* CDECL MSVCRT_wcsstr(const MSVCRT_wchar_t *str, const MSVCRT_wcha
 __int64 CDECL _wtoi64_l(const MSVCRT_wchar_t *str, MSVCRT__locale_t locale)
 {
     ULONGLONG RunningTotal = 0;
-    char bMinus = 0;
+    BOOL bMinus = FALSE;
 
     while (isspaceW(*str)) {
         str++;
@@ -1904,7 +1904,7 @@ __int64 CDECL _wtoi64_l(const MSVCRT_wchar_t *str, MSVCRT__locale_t locale)
     if (*str == '+') {
         str++;
     } else if (*str == '-') {
-        bMinus = 1;
+        bMinus = TRUE;
         str++;
     } /* if */
 
-- 
1.8.4.1




More information about the wine-patches mailing list