wineps: Don't write a PostScript trailer if we haven't written a header.

This commit is contained in:
Huw Davies 2011-08-19 16:22:10 +01:00 committed by Alexandre Julliard
parent c8fcf420c2
commit 39f14b68bf
1 changed files with 3 additions and 1 deletions

View File

@ -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);