Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5c58e448
Commit
5c58e448
authored
Dec 01, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Add ReadPrinter implementation.
parent
f4dbb3e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
provider.c
dlls/localspl/provider.c
+16
-1
No files found.
dlls/localspl/provider.c
View file @
5c58e448
...
...
@@ -3476,6 +3476,21 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
return
ret
;
}
static
BOOL
WINAPI
fpReadPrinter
(
HANDLE
hprinter
,
void
*
buf
,
DWORD
size
,
DWORD
*
bytes_read
)
{
job_t
*
job
=
(
job_t
*
)
hprinter
;
TRACE
(
"%p %p %lu %p
\n
"
,
hprinter
,
buf
,
size
,
bytes_read
);
if
(
!
job
||
(
job
->
header
.
type
!=
HANDLE_JOB
))
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
return
ReadFile
(
job
->
hf
,
buf
,
size
,
bytes_read
,
NULL
);
}
static
BOOL
WINAPI
fpEndDocPrinter
(
HANDLE
hprinter
)
{
printer_t
*
printer
=
(
printer_t
*
)
hprinter
;
...
...
@@ -3590,7 +3605,7 @@ static const PRINTPROVIDOR backend = {
fpWritePrinter
,
NULL
,
/* fpEndPagePrinter */
NULL
,
/* fpAbortPrinter */
NULL
,
/* fpReadPrinter */
fpReadPrinter
,
fpEndDocPrinter
,
fpAddJob
,
fpScheduleJob
,
...
...
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