kernel32/tests: Use ret in load_blackbox().
This commit is contained in:
parent
00ddfc804a
commit
e0c7fb66c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue