Huw Davies : winspool.drv: Make sure the printer driver registry entry exists.
Alexandre Julliard
julliard at winehq.org
Mon Jun 23 16:03:50 CDT 2008
Module: wine
Branch: master
Commit: 4f6f415aaa2dbc4a00b2b1b7dfe0ec5c5ed9a253
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f6f415aaa2dbc4a00b2b1b7dfe0ec5c5ed9a253
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Jun 23 17:12:12 2008 +0100
winspool.drv: Make sure the printer driver registry entry exists.
---
dlls/winspool.drv/info.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index abc3397..b49dd53 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -524,6 +524,7 @@ static BOOL CUPS_LoadPrinters(void)
TRACE("Printer already exists\n");
RegDeleteValueW(hkeyPrinter, May_Delete_Value);
RegCloseKey(hkeyPrinter);
+ add_printer_driver(dests[i].name);
} else {
static CHAR data_type[] = "RAW",
print_proc[] = "WinPrint",
@@ -661,6 +662,7 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
TRACE("Printer already exists\n");
RegDeleteValueW(hkeyPrinter, May_Delete_Value);
RegCloseKey(hkeyPrinter);
+ add_printer_driver(devname);
} else {
static CHAR data_type[] = "RAW",
print_proc[] = "WinPrint",
More information about the wine-cvs
mailing list