Commit c55f0881 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

setupapi/tests: Fix two failures on win98.

parent 9fab7b45
...@@ -166,8 +166,9 @@ static void test_SetupCopyOEMInf(void) ...@@ -166,8 +166,9 @@ static void test_SetupCopyOEMInf(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
res = pSetupCopyOEMInfA("", NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); res = pSetupCopyOEMInfA("", NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL);
ok(res == FALSE, "Expected FALSE, got %d\n", res); ok(res == FALSE, "Expected FALSE, got %d\n", res);
ok(GetLastError() == ERROR_FILE_NOT_FOUND, ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); GetLastError() == ERROR_BAD_PATHNAME, /* Win98 */
"Expected ERROR_FILE_NOT_FOUND or ERROR_BAD_PATHNAME, got %d\n", GetLastError());
/* try a relative nonexistent SourceInfFileName */ /* try a relative nonexistent SourceInfFileName */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
...@@ -191,8 +192,9 @@ static void test_SetupCopyOEMInf(void) ...@@ -191,8 +192,9 @@ static void test_SetupCopyOEMInf(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
res = pSetupCopyOEMInfA(toolong, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL); res = pSetupCopyOEMInfA(toolong, NULL, 0, SP_COPY_NOOVERWRITE, NULL, 0, NULL, NULL);
ok(res == FALSE, "Expected FALSE, got %d\n", res); ok(res == FALSE, "Expected FALSE, got %d\n", res);
ok(GetLastError() == ERROR_FILE_NOT_FOUND, ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); GetLastError() == ERROR_FILENAME_EXCED_RANGE, /* Win98 */
"Expected ERROR_FILE_NOT_FOUND or ERROR_FILENAME_EXCED_RANGE, got %d\n", GetLastError());
get_temp_filename(tmpfile); get_temp_filename(tmpfile);
create_inf_file(tmpfile); create_inf_file(tmpfile);
......
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