mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
Avoid crash if no default cups printer is set.
This commit is contained in:
parent
b5753597f1
commit
9c071eaefd
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue