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

Alexandre Julliard julliard at winehq.org
Thu Oct 31 16:12:39 CDT 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Oct 30 22:00:11 2013 +0100

msvcrt: Use BOOL type where appropriate.

---

 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 */
 




More information about the wine-cvs mailing list