Commit fb1fada9 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comctl32/tests: Fix some test failures on older comctl32.

parent 32d0ef39
...@@ -999,7 +999,10 @@ static void test_get_linecolor(void) ...@@ -999,7 +999,10 @@ static void test_get_linecolor(void)
/* newly created control has default color */ /* newly created control has default color */
clr = (COLORREF)SendMessage(hTree, TVM_GETLINECOLOR, 0, 0); clr = (COLORREF)SendMessage(hTree, TVM_GETLINECOLOR, 0, 0);
expect(CLR_DEFAULT, clr); if (clr == 0)
win_skip("TVM_GETLINECOLOR is not supported on comctl32 < 5.80\n");
else
expect(CLR_DEFAULT, clr);
DestroyWindow(hTree); DestroyWindow(hTree);
} }
...@@ -1013,7 +1016,10 @@ static void test_get_insertmarkcolor(void) ...@@ -1013,7 +1016,10 @@ static void test_get_insertmarkcolor(void)
/* newly created control has default color */ /* newly created control has default color */
clr = (COLORREF)SendMessage(hTree, TVM_GETINSERTMARKCOLOR, 0, 0); clr = (COLORREF)SendMessage(hTree, TVM_GETINSERTMARKCOLOR, 0, 0);
expect(CLR_DEFAULT, clr); if (clr == 0)
win_skip("TVM_GETINSERTMARKCOLOR is not supported on comctl32 < 5.80\n");
else
expect(CLR_DEFAULT, clr);
DestroyWindow(hTree); DestroyWindow(hTree);
} }
......
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