Commit 8c13dcc2 authored by Marko Nikolic's avatar Marko Nikolic Committed by Alexandre Julliard

comctl32/tests: Use unsigned constants to remove sign comparison warning.

parent 3ea13c9c
...@@ -634,7 +634,7 @@ static void test_get_set_bkcolor(void) ...@@ -634,7 +634,7 @@ static void test_get_set_bkcolor(void)
/* If the value is -1, the control is using the system color for the background color. */ /* If the value is -1, the control is using the system color for the background color. */
crColor = (COLORREF)SendMessage( hTree, TVM_GETBKCOLOR, 0, 0 ); crColor = (COLORREF)SendMessage( hTree, TVM_GETBKCOLOR, 0, 0 );
ok(crColor == -1, "Default background color reported as 0x%.8x\n", crColor); ok(crColor == ~0u, "Default background color reported as 0x%.8x\n", crColor);
/* Test for black background */ /* Test for black background */
SendMessage( hTree, TVM_SETBKCOLOR, 0, RGB(0,0,0) ); SendMessage( hTree, TVM_SETBKCOLOR, 0, RGB(0,0,0) );
...@@ -873,7 +873,7 @@ static void test_get_set_textcolor(void) ...@@ -873,7 +873,7 @@ static void test_get_set_textcolor(void)
flush_sequences(sequences, NUM_MSG_SEQUENCES); flush_sequences(sequences, NUM_MSG_SEQUENCES);
crColor = (COLORREF)SendMessage( hTree, TVM_GETTEXTCOLOR, 0, 0 ); crColor = (COLORREF)SendMessage( hTree, TVM_GETTEXTCOLOR, 0, 0 );
ok(crColor == -1, "Default text color reported as 0x%.8x\n", crColor); ok(crColor == ~0u, "Default text color reported as 0x%.8x\n", crColor);
/* Test for black text */ /* Test for black text */
SendMessage( hTree, TVM_SETTEXTCOLOR, 0, RGB(0,0,0) ); SendMessage( hTree, TVM_SETTEXTCOLOR, 0, RGB(0,0,0) );
...@@ -1453,7 +1453,7 @@ static void test_WM_PAINT(void) ...@@ -1453,7 +1453,7 @@ static void test_WM_PAINT(void)
hTree = create_treeview_control(0); hTree = create_treeview_control(0);
clr = SendMessageA(hTree, TVM_SETBKCOLOR, 0, RGB(255, 0, 0)); clr = SendMessageA(hTree, TVM_SETBKCOLOR, 0, RGB(255, 0, 0));
ok(clr == -1, "got %d, expected -1\n", clr); ok(clr == ~0u, "got %d, expected -1\n", clr);
hdc = GetDC(hMainWnd); hdc = GetDC(hMainWnd);
......
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