mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 10:17:23 +00:00
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…
x
Reference in New Issue
Block a user