kernel32/tests: Don't wait for overlapped result if the previous test failed.

This commit is contained in:
Alexandre Julliard 2006-11-04 12:07:10 +01:00
parent cd8332ae1c
commit 1f50b7f7eb
1 changed files with 6 additions and 3 deletions

View File

@ -457,9 +457,12 @@ static void test_readdirectorychanges(void)
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" );