Commit 0b811eea authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

user32/tests: Don't test function directly when reporting GetLastError().

parent ae125159
...@@ -4533,6 +4533,7 @@ static void test_messages(void) ...@@ -4533,6 +4533,7 @@ static void test_messages(void)
MSG msg; MSG msg;
LRESULT res; LRESULT res;
POINT pos; POINT pos;
BOOL ret;
flush_sequence(); flush_sequence();
...@@ -4819,7 +4820,8 @@ static void test_messages(void) ...@@ -4819,7 +4820,8 @@ static void test_messages(void)
flush_events(); flush_events();
flush_sequence(); flush_sequence();
ok(DrawMenuBar(hwnd), "DrawMenuBar failed: %d\n", GetLastError()); ret = DrawMenuBar(hwnd);
ok(ret, "DrawMenuBar failed: %d\n", GetLastError());
flush_events(); flush_events();
ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar", FALSE); ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar", FALSE);
ok(SetCursorPos(pos.x, pos.y), "SetCursorPos failed\n"); ok(SetCursorPos(pos.x, pos.y), "SetCursorPos failed\n");
...@@ -4831,7 +4833,8 @@ static void test_messages(void) ...@@ -4831,7 +4833,8 @@ static void test_messages(void)
ok(hwnd != 0, "Failed to create custom dialog window\n"); ok(hwnd != 0, "Failed to create custom dialog window\n");
flush_events(); flush_events();
flush_sequence(); flush_sequence();
ok(DrawMenuBar(hwnd), "DrawMenuBar failed: %d\n", GetLastError()); ret = DrawMenuBar(hwnd);
ok(ret, "DrawMenuBar failed: %d\n", GetLastError());
flush_events(); flush_events();
ok_sequence(WmEmptySeq, "DrawMenuBar for a child window", FALSE); ok_sequence(WmEmptySeq, "DrawMenuBar for a child window", FALSE);
......
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