=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: user32/tests: Don' t test function directly when reporting GetLastError().
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 21 15:16:21 CST 2015
Module: wine
Branch: master
Commit: 0b811eeabf0a02cde3a1200f5af5f3c0f4d00a08
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0b811eeabf0a02cde3a1200f5af5f3c0f4d00a08
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Jan 20 23:56:46 2015 +0100
user32/tests: Don't test function directly when reporting GetLastError().
---
dlls/user32/tests/msg.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index b243a74..66f054a 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -4533,6 +4533,7 @@ static void test_messages(void)
MSG msg;
LRESULT res;
POINT pos;
+ BOOL ret;
flush_sequence();
@@ -4819,7 +4820,8 @@ static void test_messages(void)
flush_events();
flush_sequence();
- ok(DrawMenuBar(hwnd), "DrawMenuBar failed: %d\n", GetLastError());
+ ret = DrawMenuBar(hwnd);
+ ok(ret, "DrawMenuBar failed: %d\n", GetLastError());
flush_events();
ok_sequence(WmDrawMenuBarSeq, "DrawMenuBar", FALSE);
ok(SetCursorPos(pos.x, pos.y), "SetCursorPos failed\n");
@@ -4831,7 +4833,8 @@ static void test_messages(void)
ok(hwnd != 0, "Failed to create custom dialog window\n");
flush_events();
flush_sequence();
- ok(DrawMenuBar(hwnd), "DrawMenuBar failed: %d\n", GetLastError());
+ ret = DrawMenuBar(hwnd);
+ ok(ret, "DrawMenuBar failed: %d\n", GetLastError());
flush_events();
ok_sequence(WmEmptySeq, "DrawMenuBar for a child window", FALSE);
More information about the wine-cvs
mailing list