Commit 37b671c5 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winspool.drv: We don't need to check for the PPD Files key before using /etc/printcap.

parent 2dd3aa62
...@@ -1651,15 +1651,8 @@ void WINSPOOL_LoadSystemPrinters(void) ...@@ -1651,15 +1651,8 @@ void WINSPOOL_LoadSystemPrinters(void)
done = CUPS_LoadPrinters(); done = CUPS_LoadPrinters();
#endif #endif
if(!done) { /* If we have any CUPS based printers, skip looking for printcap printers */ if(!done) /* If we have any CUPS based printers, skip looking for printcap printers */
/* Check for [ppd] section in config file before parsing /etc/printcap */ PRINTCAP_LoadPrinters();
/* @@ Wine registry key: HKCU\Software\Wine\Printing\PPD Files */
if (RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Printing\\PPD Files",
&hkey) == ERROR_SUCCESS) {
RegCloseKey(hkey);
PRINTCAP_LoadPrinters();
}
}
/* Now enumerate the list again and delete any printers that a still tagged */ /* Now enumerate the list again and delete any printers that a still tagged */
EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 5, NULL, 0, &needed, &num); EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 5, NULL, 0, &needed, &num);
......
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