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

Alexandre Julliard julliard at winehq.org
Sat Feb 22 09:50:04 CST 2014


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sat Feb 22 12:22:32 2014 +0100

msvidc32: Use BOOL type where appropriate.

---

 dlls/msvidc32/msvideo1.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvidc32/msvideo1.c b/dlls/msvidc32/msvideo1.c
index 831e6f7..49f9700 100644
--- a/dlls/msvidc32/msvideo1.c
+++ b/dlls/msvidc32/msvideo1.c
@@ -67,7 +67,7 @@ typedef BYTE uint8_t;
 
 typedef struct Msvideo1Context {
     DWORD dwMagic;
-    int mode_8bit;  /* if it's not 8-bit, it's 16-bit */
+    BOOL mode_8bit;  /* if it's not 8-bit, it's 16-bit */
 } Msvideo1Context;
 
 static void 
@@ -370,12 +370,12 @@ static LRESULT CRAM_DecompressBegin( Msvideo1Context *info, LPBITMAPINFO in, LPB
 
     TRACE("bitmap is %d bpp\n", in->bmiHeader.biBitCount);
     if( in->bmiHeader.biBitCount == 8 )
-        info->mode_8bit = 1;
+        info->mode_8bit = TRUE;
     else if( in->bmiHeader.biBitCount == 16 )
-        info->mode_8bit = 0;
+        info->mode_8bit = FALSE;
     else
     {
-        info->mode_8bit = 0;
+        info->mode_8bit = FALSE;
         FIXME("Unsupported output format %i\n", in->bmiHeader.biBitCount);
     }
 




More information about the wine-cvs mailing list