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

Alexandre Julliard julliard at winehq.org
Fri Jan 3 11:23:16 CST 2014


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Fri Jan  3 02:03:28 2014 +0100

comctl32/tests: Use BOOL type where appropriate.

---

 dlls/comctl32/tests/header.c   |    2 +-
 dlls/comctl32/tests/monthcal.c |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 85437d0..7fb73b1 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1690,7 +1690,7 @@ static BOOL init(void)
 
 /* maximum 8 items allowed */
 static void check_orderarray(HWND hwnd, DWORD start, DWORD set, DWORD expected,
-                             int todo, int line)
+                             BOOL todo, int line)
 {
     int count, i;
     INT order[8];
diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index 604fb99..145d20f 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -961,18 +961,18 @@ static void test_hittest(void)
     typedef struct hittest_test
     {
 	UINT ht;
-        int  todo;
+        BOOL  todo;
     } hittest_test_t;
 
     static const hittest_test_t title_hits[] = {
         /* Start is the same everywhere */
-        { MCHT_TITLE,        0 },
-        { MCHT_TITLEBTNPREV, 0 },
+        { MCHT_TITLE,        FALSE },
+        { MCHT_TITLEBTNPREV, FALSE },
         /* The middle piece is only tested for presence of items */
         /* End is the same everywhere */
-        { MCHT_TITLEBTNNEXT, 0 },
-        { MCHT_TITLE,        0 },
-        { MCHT_NOWHERE,      1 }
+        { MCHT_TITLEBTNNEXT, FALSE },
+        { MCHT_TITLE,        FALSE },
+        { MCHT_NOWHERE,      TRUE }
     };
 
     MCHITTESTINFO mchit;




More information about the wine-cvs mailing list