Alexandre Julliard : user32/tests: Fix broken check of the ok() macro return value.

Alexandre Julliard julliard at winehq.org
Wed Feb 24 10:21:35 CST 2010


Module: wine
Branch: master
Commit: c888a2eb227ad4a0c731b77188830969ba21bbb4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c888a2eb227ad4a0c731b77188830969ba21bbb4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Feb 24 16:04:11 2010 +0100

user32/tests: Fix broken check of the ok() macro return value.

Spotted by Yann Droneaud.

---

 dlls/user32/tests/scroll.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/scroll.c b/dlls/user32/tests/scroll.c
index 03725b9..0695639 100644
--- a/dlls/user32/tests/scroll.c
+++ b/dlls/user32/tests/scroll.c
@@ -411,8 +411,8 @@ START_TEST ( scroll )
       WS_OVERLAPPEDWINDOW|WS_VSCROLL|WS_HSCROLL,
       CW_USEDEFAULT, CW_USEDEFAULT, 100, 100, NULL, NULL, GetModuleHandleA(NULL), 0 );
 
-    if ( !ok( hMainWnd != NULL, "Failed to create parent window. Tests aborted.\n" ) )
-        return;
+    ok(hMainWnd != NULL, "Failed to create parent window. Tests aborted.\n");
+    if (!hMainWnd) return;
 
     assert( hScroll );
 




More information about the wine-cvs mailing list