Alexandre Julliard : kernel32/tests: Don'
t wait for overlapped result if the previous test failed.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat Nov 4 13:32:36 CST 2006
Module: wine
Branch: master
Commit: 1f50b7f7eb291e7af76843e37ab6efb75f49db9c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f50b7f7eb291e7af76843e37ab6efb75f49db9c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Nov 4 12:07:10 2006 +0100
kernel32/tests: Don't wait for overlapped result if the previous test failed.
---
dlls/kernel32/tests/change.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c
index 04bbbc4..bf7cdc1 100644
--- a/dlls/kernel32/tests/change.c
+++ b/dlls/kernel32/tests/change.c
@@ -457,9 +457,12 @@ static void test_readdirectorychanges(vo
ok( ov.Internal == STATUS_SUCCESS, "ov.Internal wrong\n");
ok( ov.InternalHigh == 0x12, "ov.InternalHigh wrong\n");
- r = GetOverlappedResult( hdir, &ov, &dwCount, TRUE );
- ok( r == TRUE, "getoverlappedresult failed\n");
- ok( dwCount == 0x12, "count wrong\n");
+ if (ov.Internal == STATUS_SUCCESS)
+ {
+ r = GetOverlappedResult( hdir, &ov, &dwCount, TRUE );
+ ok( r == TRUE, "getoverlappedresult failed\n");
+ ok( dwCount == 0x12, "count wrong\n");
+ }
pfni = (PFILE_NOTIFY_INFORMATION) buffer;
ok( pfni->NextEntryOffset == 0, "offset wrong\n" );
More information about the wine-cvs
mailing list