Module: wine Branch: master Commit: c888a2eb227ad4a0c731b77188830969ba21bbb4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c888a2eb227ad4a0c731b77188...
Author: Alexandre Julliard julliard@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 );