setupapi/tests: Add acceptable error code for Win7.

This commit is contained in:
Ge van Geldorp 2009-09-28 12:41:09 +02:00 committed by Alexandre Julliard
parent 1d0365da95
commit 5448bf3e36
1 changed files with 2 additions and 2 deletions

View File

@ -198,13 +198,13 @@ static void test_SetupCopyOEMInf(void)
SetLastError(0xdeadbeef);
res = pSetupCopyOEMInfA(tmpfile, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL);
ok(res == FALSE, "Expected FALSE, got %d\n", res);
if (GetLastError() == ERROR_WRONG_INF_TYPE)
if (GetLastError() == ERROR_WRONG_INF_TYPE || GetLastError() == ERROR_UNSUPPORTED_TYPE /* Win7 */)
{
/* FIXME:
* Vista needs a [Manufacturer] entry in the inf file. Doing this will give some
* popups during the installation though as it also needs a catalog file (signed?).
*/
win_skip("Needs a different inf file on Vista/W2K8\n");
win_skip("Needs a different inf file on Vista+\n");
DeleteFile(tmpfile);
return;
}