Commit 4f6f415a authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winspool.drv: Make sure the printer driver registry entry exists.

parent 4fe5683c
...@@ -524,6 +524,7 @@ static BOOL CUPS_LoadPrinters(void) ...@@ -524,6 +524,7 @@ static BOOL CUPS_LoadPrinters(void)
TRACE("Printer already exists\n"); TRACE("Printer already exists\n");
RegDeleteValueW(hkeyPrinter, May_Delete_Value); RegDeleteValueW(hkeyPrinter, May_Delete_Value);
RegCloseKey(hkeyPrinter); RegCloseKey(hkeyPrinter);
add_printer_driver(dests[i].name);
} else { } else {
static CHAR data_type[] = "RAW", static CHAR data_type[] = "RAW",
print_proc[] = "WinPrint", print_proc[] = "WinPrint",
...@@ -661,6 +662,7 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) { ...@@ -661,6 +662,7 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
TRACE("Printer already exists\n"); TRACE("Printer already exists\n");
RegDeleteValueW(hkeyPrinter, May_Delete_Value); RegDeleteValueW(hkeyPrinter, May_Delete_Value);
RegCloseKey(hkeyPrinter); RegCloseKey(hkeyPrinter);
add_printer_driver(devname);
} else { } else {
static CHAR data_type[] = "RAW", static CHAR data_type[] = "RAW",
print_proc[] = "WinPrint", print_proc[] = "WinPrint",
......
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