winspool: Return the correct errorcode in OpenPrinter (Xcv).

This commit is contained in:
Detlef Riekenberg 2007-04-30 10:37:58 +02:00 committed by Alexandre Julliard
parent 174d050bb7
commit fc78034638
1 changed files with 2 additions and 2 deletions

View File

@ -1419,7 +1419,7 @@ static HANDLE get_opened_printer_entry(LPCWSTR name, LPPRINTER_DEFAULTSW pDefaul
TRACE(",XcvMonitor: %s\n", debugstr_w(&printername[len]));
printer->pm = monitor_load(&printername[len], NULL);
if (printer->pm == NULL) {
SetLastError(ERROR_INVALID_PARAMETER);
SetLastError(ERROR_UNKNOWN_PORT);
handle = 0;
goto end;
}
@ -1432,7 +1432,7 @@ static HANDLE get_opened_printer_entry(LPCWSTR name, LPPRINTER_DEFAULTSW pDefaul
TRACE(",XcvPort: %s\n", debugstr_w(&printername[len]));
printer->pm = monitor_load_by_port(&printername[len]);
if (printer->pm == NULL) {
SetLastError(ERROR_INVALID_PARAMETER);
SetLastError(ERROR_UNKNOWN_PORT);
handle = 0;
goto end;
}