From 4f6f415aaa2dbc4a00b2b1b7dfe0ec5c5ed9a253 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 23 Jun 2008 17:12:12 +0100 Subject: [PATCH] winspool.drv: Make sure the printer driver registry entry exists. --- dlls/winspool.drv/info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index abc3397444..b49dd531d0 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",