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,6 +528,8 @@ INT PSDRV_EndDoc( PHYSDEV dev )
WARN("Somebody forgot an EndPage\n");
PSDRV_EndPage( dev );
}
if (physDev->job.PageNo)
PSDRV_WriteFooter( dev );
ret = EndDocPrinter(physDev->job.hprinter);