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
a5eb4f6f
Commit
a5eb4f6f
authored
Mar 23, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Initialize PSDRV_PDEVICE print job information in PrintDocumentOnPrintProcessor.
parent
e879b9db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
printproc.c
dlls/wineps.drv/printproc.c
+11
-1
No files found.
dlls/wineps.drv/printproc.c
View file @
a5eb4f6f
...
...
@@ -285,7 +285,8 @@ BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
info
.
pDocName
=
data
->
doc_name
;
info
.
pOutputFile
=
data
->
out_file
;
info
.
pDatatype
=
(
WCHAR
*
)
L"RAW"
;
if
(
!
StartDocPrinterW
(
data
->
hport
,
1
,
(
BYTE
*
)
&
info
))
data
->
pdev
->
job
.
id
=
StartDocPrinterW
(
data
->
hport
,
1
,
(
BYTE
*
)
&
info
);
if
(
!
data
->
pdev
->
job
.
id
)
{
ClosePrinter
(
spool_data
);
return
FALSE
;
...
...
@@ -310,6 +311,14 @@ BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
if
(
!
(
ret
=
SeekPrinter
(
spool_data
,
pos
,
NULL
,
FILE_BEGIN
,
FALSE
)))
goto
cleanup
;
data
->
pdev
->
job
.
hprinter
=
data
->
hport
;
data
->
pdev
->
job
.
banding
=
FALSE
;
data
->
pdev
->
job
.
OutOfPage
=
TRUE
;
data
->
pdev
->
job
.
PageNo
=
0
;
data
->
pdev
->
job
.
quiet
=
FALSE
;
data
->
pdev
->
job
.
passthrough_state
=
passthrough_none
;
data
->
pdev
->
job
.
doc_name
=
strdupW
(
data
->
doc_name
);
while
(
1
)
{
if
(
!
(
ret
=
ReadPrinter
(
spool_data
,
&
record
,
sizeof
(
record
),
&
r
)))
...
...
@@ -366,6 +375,7 @@ BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE pp, WCHAR *doc_name)
}
cleanup:
HeapFree
(
GetProcessHeap
(),
0
,
data
->
pdev
->
job
.
doc_name
);
ClosePrinter
(
spool_data
);
return
EndDocPrinter
(
data
->
hport
)
&&
ret
;
}
...
...
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