mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
winspool.drv: Make sure the printer driver registry entry exists.
This commit is contained in:
parent
4fe5683ce4
commit
4f6f415aaa
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user