setupapi/tests: Don't test function directly when reporting GetLastError().
This commit is contained in:
parent
424fa9a7f3
commit
57aa778e2d
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue