Commit 16945559 authored by Marko Nikolic's avatar Marko Nikolic Committed by Alexandre Julliard

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

parent 687b030c
...@@ -1254,7 +1254,7 @@ static void test_removeimage(void) ...@@ -1254,7 +1254,7 @@ static void test_removeimage(void)
static void test_delete_selection(void) static void test_delete_selection(void)
{ {
HWND hTab; HWND hTab;
DWORD ret; INT ret;
hTab = createFilledTabControl(parent_wnd, TCS_FIXEDWIDTH, TCIF_TEXT|TCIF_IMAGE, 4); hTab = createFilledTabControl(parent_wnd, TCS_FIXEDWIDTH, TCIF_TEXT|TCIF_IMAGE, 4);
ok(hTab != NULL, "Failed to create tab control\n"); ok(hTab != NULL, "Failed to create tab control\n");
...@@ -1312,8 +1312,8 @@ static void test_TCM_SETITEMEXTRA(void) ...@@ -1312,8 +1312,8 @@ static void test_TCM_SETITEMEXTRA(void)
static void test_TCS_OWNERDRAWFIXED(void) static void test_TCS_OWNERDRAWFIXED(void)
{ {
LPARAM lparam, lparam2; LPARAM lparam;
ULONG_PTR itemdata; ULONG_PTR itemdata, itemdata2;
TCITEMA item; TCITEMA item;
HWND hTab; HWND hTab;
BOOL ret; BOOL ret;
...@@ -1338,7 +1338,7 @@ static void test_TCS_OWNERDRAWFIXED(void) ...@@ -1338,7 +1338,7 @@ static void test_TCS_OWNERDRAWFIXED(void)
itemdata = 0; itemdata = 0;
memset(&itemdata, 0xde, 4); memset(&itemdata, 0xde, 4);
ok(g_drawitem.itemData == itemdata, "got %lx, expected %lx\n", g_drawitem.itemData, itemdata); ok(g_drawitem.itemData == itemdata, "got 0x%lx, expected 0x%lx\n", g_drawitem.itemData, itemdata);
DestroyWindow(hTab); DestroyWindow(hTab);
...@@ -1368,7 +1368,8 @@ static void test_TCS_OWNERDRAWFIXED(void) ...@@ -1368,7 +1368,8 @@ static void test_TCS_OWNERDRAWFIXED(void)
ShowWindow(hTab, SW_SHOW); ShowWindow(hTab, SW_SHOW);
RedrawWindow(hTab, NULL, 0, RDW_UPDATENOW); RedrawWindow(hTab, NULL, 0, RDW_UPDATENOW);
ok(*(ULONG_PTR*)g_drawitem.itemData == lparam, "got %lx, expected %lx\n", g_drawitem.itemData, lparam); memset(&itemdata, 0xde, sizeof(ULONG_PTR));
ok(*(ULONG_PTR*)g_drawitem.itemData == itemdata, "got 0x%lx, expected 0x%lx\n", g_drawitem.itemData, itemdata);
DestroyWindow(hTab); DestroyWindow(hTab);
...@@ -1397,11 +1398,11 @@ static void test_TCS_OWNERDRAWFIXED(void) ...@@ -1397,11 +1398,11 @@ static void test_TCS_OWNERDRAWFIXED(void)
ShowWindow(hTab, SW_SHOW); ShowWindow(hTab, SW_SHOW);
RedrawWindow(hTab, NULL, 0, RDW_UPDATENOW); RedrawWindow(hTab, NULL, 0, RDW_UPDATENOW);
lparam = 0; itemdata = itemdata2 = 0;
memset(&lparam, 0xde, 4); memset(&itemdata, 0xde, 4);
memset(&lparam2, 0xde, sizeof(LPARAM)-1); memset(&itemdata2, 0xde, sizeof(LPARAM)-1);
ok(g_drawitem.itemData == lparam || broken(g_drawitem.itemData == lparam2) /* win98 */, ok(g_drawitem.itemData == itemdata || broken(g_drawitem.itemData == itemdata2) /* win98 */,
"got 0x%lx, expected 0x%lx\n", g_drawitem.itemData, lparam); "got 0x%lx, expected 0x%lx\n", g_drawitem.itemData, itemdata);
DestroyWindow(hTab); DestroyWindow(hTab);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment