mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
New CUPS libraries return "none" as default printer instead of NULL.
This commit is contained in:
parent
f476a0fbdc
commit
228a2b3ae5
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ CUPS_LoadPrinters(void) {
|
|||
|
||||
nrofdests = cupsGetPrinters(&printers);
|
||||
|
||||
if (def && !strcmp(def,"none")) /* CUPS has "none" for no default printer */
|
||||
def = NULL;
|
||||
|
||||
for (i=0;i<nrofdests;i++) {
|
||||
const char *ppd = cupsGetPPD(printers[i]);
|
||||
char *port,*devline;
|
||||
|
|
Loading…
Reference in a new issue