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

Spotted by Yann Droneaud.
This commit is contained in:
Alexandre Julliard 2010-02-24 16:04:05 +01:00
parent d279227538
commit d5a54642f4
1 changed files with 2 additions and 3 deletions

View File

@ -126,9 +126,8 @@ START_TEST(autocomplete)
return; return;
createMainWnd(); createMainWnd();
ok(hMainWnd != NULL, "Failed to create parent window. Tests aborted.\n");
if(!ok(hMainWnd != NULL, "Failed to create parent window. Tests aborted.\n")) if (!hMainWnd) return;
return;
ac = test_init(); ac = test_init();
if (!ac) if (!ac)