Alexandre Julliard : comctl32/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: 2432b0f6b91e57e886dfe39db83d991fde00c2b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2432b0f6b91e57e886dfe39db83d991fde00c2b5

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

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

Spotted by Yann Droneaud.

---

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

diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index 74d4d0e..953b54a 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -1060,8 +1060,8 @@ START_TEST(treeview)
     hMainWnd = CreateWindowExA(0, "MyTestWnd", "Blah", WS_OVERLAPPEDWINDOW,
       CW_USEDEFAULT, CW_USEDEFAULT, 130, 105, 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;
 
     test_fillroot();
     test_select();




More information about the wine-cvs mailing list