Marko Nikolic : comctl32/tests: Removed sign comparison warning in tooltip tests.

Alexandre Julliard julliard at winehq.org
Wed Jun 1 12:11:08 CDT 2011


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

Author: Marko Nikolic <grkoma at gmail.com>
Date:   Tue May 31 23:38:47 2011 +0200

comctl32/tests: Removed sign comparison warning in tooltip tests.

---

 dlls/comctl32/tests/tooltips.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/dlls/comctl32/tests/tooltips.c b/dlls/comctl32/tests/tooltips.c
index 8ca3f7b..596598f 100644
--- a/dlls/comctl32/tests/tooltips.c
+++ b/dlls/comctl32/tests/tooltips.c
@@ -148,7 +148,7 @@ static void test_customdraw(void) {
         {CDRF_NEWFONT, TEST_CDDS_PREPAINT}
     };
 
-   int       iterationNumber;
+   DWORD       iterationNumber;
    WNDCLASSA wc;
    LRESULT   lResult;
 
@@ -435,7 +435,7 @@ static void test_ttm_gettoolinfo(void)
     ti.uFlags = 0;
     ti.uId = 0x1234ABCD;
     ti.lpszText = NULL;
-    ti.lParam = 0xdeadbeef;
+    ti.lParam = 0x1abe11ed;
     GetClientRect(hwnd, &ti.rect);
     r = SendMessageA(hwnd, TTM_ADDTOOLA, 0, (LPARAM)&ti);
     ok(r, "Adding the tool to the tooltip failed\n");
@@ -444,9 +444,9 @@ static void test_ttm_gettoolinfo(void)
     ti.lParam = 0xaaaaaaaa;
     r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti);
     ok(r, "Getting tooltip info failed\n");
-    ok(0xdeadbeef == ti.lParam ||
-       broken(0xdeadbeef != ti.lParam), /* comctl32 < 5.81 */
-       "Expected 0xdeadbeef, got %lx\n", ti.lParam);
+    ok(0x1abe11ed == ti.lParam ||
+       broken(0x1abe11ed != ti.lParam), /* comctl32 < 5.81 */
+       "Expected 0x1abe11ed, got %lx\n", ti.lParam);
 
     tiW.cbSize = TTTOOLINFOW_V2_SIZE;
     tiW.hwnd = NULL;
@@ -454,22 +454,22 @@ static void test_ttm_gettoolinfo(void)
     tiW.lParam = 0xaaaaaaaa;
     r = SendMessageA(hwnd, TTM_GETTOOLINFOW, 0, (LPARAM)&tiW);
     ok(r, "Getting tooltip info failed\n");
-    ok(0xdeadbeef == tiW.lParam ||
-       broken(0xdeadbeef != tiW.lParam), /* comctl32 < 5.81 */
-       "Expected 0xdeadbeef, got %lx\n", tiW.lParam);
+    ok(0x1abe11ed == tiW.lParam ||
+       broken(0x1abe11ed != tiW.lParam), /* comctl32 < 5.81 */
+       "Expected 0x1abe11ed, got %lx\n", tiW.lParam);
 
     ti.cbSize = TTTOOLINFOA_V2_SIZE;
     ti.uId = 0x1234ABCD;
-    ti.lParam = 0xaaaaaaaa;
+    ti.lParam = 0x55555555;
     SendMessageA(hwnd, TTM_SETTOOLINFOA, 0, (LPARAM)&ti);
 
     ti.cbSize = TTTOOLINFOA_V2_SIZE;
     ti.lParam = 0xdeadbeef;
     r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti);
     ok(r, "Getting tooltip info failed\n");
-    ok(0xaaaaaaaa == ti.lParam ||
-       broken(0xaaaaaaaa != ti.lParam), /* comctl32 < 5.81 */
-       "Expected 0xaaaaaaaa, got %lx\n", ti.lParam);
+    ok(0x55555555 == ti.lParam ||
+       broken(0x55555555 != ti.lParam), /* comctl32 < 5.81 */
+       "Expected 0x55555555, got %lx\n", ti.lParam);
 
     DestroyWindow(hwnd);
 




More information about the wine-cvs mailing list