Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3345404c
Commit
3345404c
authored
Jul 31, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Flush spool data even if there are no pages to print.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55291
parent
0442d183
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
printproc.c
dlls/wineps.drv/printproc.c
+1
-0
ps.c
dlls/wineps.drv/ps.c
+1
-1
No files found.
dlls/wineps.drv/printproc.c
View file @
3345404c
...
...
@@ -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
);
...
...
dlls/wineps.drv/ps.c
View file @
3345404c
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment