Commit 5ea386e7 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Fix the tests of GetDefaultPrinterA on win2k if no default printer is

configured.
parent 20ab4b39
......@@ -50,7 +50,8 @@ static void test_default_printer(void)
retval = func( buffer, &exact);
if (!retval || !exact || !strlen(buffer) ||
(ERROR_SUCCESS != GetLastError())) {
if (ERROR_FILE_NOT_FOUND == GetLastError())
if ((ERROR_FILE_NOT_FOUND == GetLastError()) ||
(ERROR_INVALID_NAME == GetLastError()))
trace("this test requires a default printer to be set\n");
else {
ok( 0, "function call GetDefaultPrinterA failed unexpected!\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