mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 03:13:38 +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:
parent
0442d18363
commit
3345404cbe
|
@ -3140,6 +3140,7 @@ BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
|
||||||
cleanup:
|
cleanup:
|
||||||
if (data->ctx->job.PageNo)
|
if (data->ctx->job.PageNo)
|
||||||
PSDRV_WriteFooter(data->ctx);
|
PSDRV_WriteFooter(data->ctx);
|
||||||
|
flush_spool(data->ctx);
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, data->ctx->job.doc_name);
|
HeapFree(GetProcessHeap(), 0, data->ctx->job.doc_name);
|
||||||
ClosePrinter(spool_data);
|
ClosePrinter(spool_data);
|
||||||
|
|
|
@ -502,7 +502,7 @@ INT PSDRV_WriteFooter( print_ctx *ctx )
|
||||||
|
|
||||||
sprintf(buf, psfooter, ctx->job.PageNo);
|
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");
|
WARN("WriteSpool error\n");
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue