Gerald Pfeifer gerald at pfeifer.com
Thu Nov 1 09:52:21 CDT 2007

There are quite a couple of further type problems here (signed versus
unsigned), but this one already takes care of a dozne or so.


Make parameters of expect_band_content() match the corresponding types
of REBARBANDINFO and fix one format string.

Index: dlls/comctl32/tests/rebar.c
RCS file: /home/wine/wine/dlls/comctl32/tests/rebar.c,v
retrieving revision 1.9
diff -u -3 -p -r1.9 rebar.c
--- dlls/comctl32/tests/rebar.c	15 Oct 2007 16:30:15 -0000	1.9
+++ dlls/comctl32/tests/rebar.c	1 Nov 2007 14:50:21 -0000
@@ -693,11 +693,11 @@ static void resize_test(void)
-static void expect_band_content(UINT uBand, UINT fStyle, COLORREF clrFore,
+static void expect_band_content(UINT uBand, INT fStyle, COLORREF clrFore,
     COLORREF clrBack, LPCSTR lpText, int iImage, HWND hwndChild,
-    UINT cxMinChild, UINT cyMinChild, UINT cx, HBITMAP hbmBack, UINT wID,
-    UINT cyChild, UINT cyMaxChild, UINT cyIntegral, UINT cxIdeal, LPARAM lParam,
-    UINT cxHeader)
+    INT cxMinChild, INT cyMinChild, INT cx, HBITMAP hbmBack, INT wID,
+    INT cyChild, INT cyMaxChild, INT cyIntegral, INT cxIdeal, LPARAM lParam,
+    INT cxHeader)
     CHAR buf[MAX_PATH] = "abc";
@@ -712,7 +712,7 @@ static void expect_band_content(UINT uBa
     ok(SendMessageA(hRebar, RB_GETBANDINFOA, uBand, (LPARAM)&rb), "RB_GETBANDINFO failed\n");
     expect_eq(rb.fStyle, fStyle, int, "%x");
     todo_wine expect_eq(rb.clrFore, clrFore, COLORREF, "%x");
-    todo_wine expect_eq(rb.clrBack, clrBack, int, "%x");
+    todo_wine expect_eq(rb.clrBack, clrBack, unsigned, "%x");
     expect_eq(strcmp(rb.lpText, lpText), 0, int, "%d");
     expect_eq(rb.iImage, iImage, int, "%x");
     expect_eq(rb.hwndChild, hwndChild, HWND, "%p");

More information about the wine-patches mailing list