Commit 57aa778e authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

setupapi/tests: Don't test function directly when reporting GetLastError().

parent 424fa9a7
......@@ -328,7 +328,8 @@ static void test_SetupCopyOEMInf(void)
{
/* Win9x/WinMe */
SetLastError(0xdeadbeef);
ok(DeleteFileA(dest), "Failed to delete file '%s' : %d\n", dest, GetLastError());
res = DeleteFileA(dest);
ok(res, "Failed to delete file '%s' : %d\n", dest, GetLastError());
/* On WinMe we also need to remove the .pnf file */
*(strrchr(dest, '.') + 1) = 'p';
......
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