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

configured.
This commit is contained in:
Stefan Leichter 2004-06-15 20:25:24 +00:00 committed by Alexandre Julliard
parent 20ab4b395f
commit 5ea386e7f4
1 changed files with 2 additions and 1 deletions

View File

@ -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"