1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

wineps.drv: Flush spool data even if there are no pages to print.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55291
This commit is contained in:
Piotr Caban 2023-07-31 15:31:40 +02:00 committed by Alexandre Julliard
parent 0442d18363
commit 3345404cbe
2 changed files with 2 additions and 1 deletions

View File

@ -3140,6 +3140,7 @@ BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
cleanup:
if (data->ctx->job.PageNo)
PSDRV_WriteFooter(data->ctx);
flush_spool(data->ctx);
HeapFree(GetProcessHeap(), 0, data->ctx->job.doc_name);
ClosePrinter(spool_data);

View File

@ -502,7 +502,7 @@ INT PSDRV_WriteFooter( print_ctx *ctx )
sprintf(buf, psfooter, ctx->job.PageNo);
if( write_spool( ctx, buf, strlen(buf) ) != strlen(buf) || !flush_spool(ctx) ) {
if( write_spool( ctx, buf, strlen(buf) ) != strlen(buf) ) {
WARN("WriteSpool error\n");
ret = 0;
}