Alexandre Julliard : shell32/tests: Fix broken check of the ok() macro return value.
Module: wine Branch: master Commit: d5a54642f478a530cf7672332c423233d11f157f URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5a54642f478a530cf7672332c... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Feb 24 16:04:05 2010 +0100 shell32/tests: Fix broken check of the ok() macro return value. Spotted by Yann Droneaud. --- dlls/shell32/tests/autocomplete.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/tests/autocomplete.c b/dlls/shell32/tests/autocomplete.c index 042e238..569625f 100644 --- a/dlls/shell32/tests/autocomplete.c +++ b/dlls/shell32/tests/autocomplete.c @@ -126,9 +126,8 @@ START_TEST(autocomplete) return; createMainWnd(); - - 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; ac = test_init(); if (!ac)
participants (1)
-
Alexandre Julliard