Commit e0c7fb66 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

kernel32/tests: Use ret in load_blackbox().

parent 00ddfc80
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment