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

This commit is contained in:
André Hentschel 2010-12-25 00:07:01 +01:00 committed by Alexandre Julliard
parent 424fa9a7f3
commit 57aa778e2d
1 changed files with 2 additions and 1 deletions

View File

@ -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';