winspool: [1/2] Return the correct errorcode in OpenPrinter (Xcv)
Detlef Riekenberg
wine.dev at web.de
Mon Apr 30 03:37:58 CDT 2007
winspool: Return the correct errorcode in OpenPrinter (Xcv)
--
By by ... Detlef
-------------- next part --------------
>From 0366334ecd22bfa3ea7b7ea5121fe5d32082dd69 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Mon, 30 Apr 2007 09:31:33 +0200
Subject: [PATCH 2/3] 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(L
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(L
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;
}
--
1.4.1
More information about the wine-patches
mailing list