From d5a54642f478a530cf7672332c423233d11f157f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Feb 2010 16:04:05 +0100 Subject: [PATCH] shell32/tests: Fix broken check of the ok() macro return value. Spotted by Yann Droneaud. --- dlls/shell32/tests/autocomplete.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/tests/autocomplete.c b/dlls/shell32/tests/autocomplete.c index 042e238c2d..569625f8e7 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) -- 2.32.0.93.g670b81a890