kernel32/tests: Use ret in load_blackbox().

This commit is contained in:
Austin English 2010-05-22 03:38:05 -05:00 committed by Alexandre Julliard
parent 00ddfc804a
commit e0c7fb66c4
1 changed files with 2 additions and 0 deletions

View File

@ -143,7 +143,9 @@ static int load_blackbox(const char* logfile, void* blackbox, int size)
ok(0, "unable to open '%s'\n", logfile);
return 0;
}
SetLastError(0xdeadbeef);
ret=ReadFile(hFile, blackbox, size, &read, NULL);
ok(ret, "ReadFile failed: %d\n", GetLastError());
ok(read == size, "wrong size for '%s': read=%d\n", logfile, read);
CloseHandle(hFile);
return 1;