Commit c0e89107 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent d5158cc3
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment