Commit fc780346 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

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

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