Commit 9c071eae authored by Alexander Gottwald's avatar Alexander Gottwald Committed by Alexandre Julliard

Avoid crash if no default cups printer is set.

parent b5753597
......@@ -137,7 +137,7 @@ CUPS_LoadPrinters(void) {
hadprinter = TRUE;
if (!strcmp(def,printers[i]))
if (def && !strcmp(def,printers[i]))
WINSPOOL_SetDefaultPrinter(printers[i],printers[i],FALSE);
memset(&pinfo2a,0,sizeof(pinfo2a));
pinfo2a.pPrinterName = printers[i];
......
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