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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 30 07:11:29 CDT 2007


Module: wine
Branch: master
Commit: fc78034638778b99ce50511badf4846f7532ad14
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fc78034638778b99ce50511badf4846f7532ad14

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Apr 30 10:37:58 2007 +0200

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

---

 dlls/winspool.drv/info.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index a6d65ea..a469f5b 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -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;
                 }




More information about the wine-cvs mailing list