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)
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",
......
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