Commit 7de22a74 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/tests: Fix a possible test failure.

parent ba373a3e
...@@ -2639,6 +2639,7 @@ static void test_visual(void) ...@@ -2639,6 +2639,7 @@ static void test_visual(void)
SendMessageA(toolbar, TB_BUTTONSTRUCTSIZE, sizeof(tbbutton), 0); SendMessageA(toolbar, TB_BUTTONSTRUCTSIZE, sizeof(tbbutton), 0);
ret = SendMessageA(toolbar, TB_ADDBUTTONSA, 1, (LPARAM)&tbbutton); ret = SendMessageA(toolbar, TB_ADDBUTTONSA, 1, (LPARAM)&tbbutton);
ok(ret, "TB_ADDBUTTONSA failed.\n"); ok(ret, "TB_ADDBUTTONSA failed.\n");
flush_events();
theme = pGetWindowTheme(toolbar); theme = pGetWindowTheme(toolbar);
ok(!theme, "Expected theme not opened by window.\n"); ok(!theme, "Expected theme not opened by window.\n");
...@@ -2650,7 +2651,6 @@ static void test_visual(void) ...@@ -2650,7 +2651,6 @@ static void test_visual(void)
ret = RedrawWindow(toolbar, NULL, NULL, RDW_FRAME | RDW_INVALIDATE | RDW_ERASE | RDW_ERASENOW | RDW_UPDATENOW); ret = RedrawWindow(toolbar, NULL, NULL, RDW_FRAME | RDW_INVALIDATE | RDW_ERASE | RDW_ERASENOW | RDW_UPDATENOW);
ok(ret, "RedrawWindow failed.\n"); ok(ret, "RedrawWindow failed.\n");
flush_events();
mem_dc1 = CreateCompatibleDC(toolbar_dc); mem_dc1 = CreateCompatibleDC(toolbar_dc);
mem_bitmap1 = CreateCompatibleBitmap(toolbar_dc, width, height); mem_bitmap1 = CreateCompatibleBitmap(toolbar_dc, width, height);
......
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