wineps: Don't write a PostScript trailer if we haven't written a header.
This commit is contained in:
parent
c8fcf420c2
commit
39f14b68bf
|
@ -528,7 +528,9 @@ INT PSDRV_EndDoc( PHYSDEV dev )
|
||||||
WARN("Somebody forgot an EndPage\n");
|
WARN("Somebody forgot an EndPage\n");
|
||||||
PSDRV_EndPage( dev );
|
PSDRV_EndPage( dev );
|
||||||
}
|
}
|
||||||
PSDRV_WriteFooter( dev );
|
|
||||||
|
if (physDev->job.PageNo)
|
||||||
|
PSDRV_WriteFooter( dev );
|
||||||
|
|
||||||
ret = EndDocPrinter(physDev->job.hprinter);
|
ret = EndDocPrinter(physDev->job.hprinter);
|
||||||
ClosePrinter(physDev->job.hprinter);
|
ClosePrinter(physDev->job.hprinter);
|
||||||
|
|
Loading…
Reference in New Issue