setupapi: Fix a test that is failing in multiple platforms.

oldstable
James Hawkins 2008-07-01 00:39:33 -05:00 committed by Alexandre Julliard
parent d5158cc35d
commit c0e89107c5
1 changed files with 5 additions and 1 deletions

View File

@ -149,7 +149,11 @@ static void test_SetupGetInfInformation(void)
SetLastError(0xbeefcafe);
ret = SetupGetInfInformationA(NULL, INFINFO_INF_SPEC_IS_HINF, NULL, 0, &size);
ok(ret == FALSE, "Expected SetupGetInfInformation to fail\n");
ok(GetLastError() == ERROR_INVALID_HANDLE,
ok(GetLastError() == ERROR_INVALID_HANDLE ||
broken(GetLastError() == ERROR_BAD_PATHNAME) || /* win95 */
broken(GetLastError() == ERROR_FILE_NOT_FOUND) || /* win98 */
broken(GetLastError() == ERROR_PATH_NOT_FOUND) || /* NT4 */
broken(GetLastError() == ERROR_INVALID_NAME), /* win2k */
"Expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
ok(size == 0xdeadbeef, "Expected size to remain unchanged\n");