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
8aaaf417
Commit
8aaaf417
authored
Dec 06, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Add partial SeekPrinter implementation.
parent
017e9557
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
provider.c
dlls/localspl/provider.c
+30
-1
No files found.
dlls/localspl/provider.c
View file @
8aaaf417
...
...
@@ -3899,6 +3899,35 @@ static BOOL WINAPI fpClosePrinter(HANDLE hprinter)
return
TRUE
;
}
static
BOOL
WINAPI
fpSeekPrinter
(
HANDLE
hprinter
,
LARGE_INTEGER
distance
,
LARGE_INTEGER
*
pos
,
DWORD
method
,
BOOL
bwrite
)
{
job_t
*
job
=
(
job_t
*
)
hprinter
;
TRACE
(
"(%p %I64d %p %lx %x)
\n
"
,
hprinter
,
distance
.
QuadPart
,
pos
,
method
,
bwrite
);
if
(
!
job
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
job
->
header
.
type
!=
HANDLE_JOB
)
{
FIXME
(
"handle %x not supported
\n
"
,
job
->
header
.
type
);
return
FALSE
;
}
if
(
bwrite
)
{
if
(
pos
)
pos
->
QuadPart
=
0
;
return
TRUE
;
}
return
SetFilePointerEx
(
job
->
hf
,
distance
,
pos
,
method
);
}
static
const
PRINTPROVIDOR
backend
=
{
fpOpenPrinter
,
fpSetJob
,
...
...
@@ -3971,7 +4000,7 @@ static const PRINTPROVIDOR backend = {
NULL
,
/* fpEnumPrinterKey */
NULL
,
/* fpDeletePrinterDataEx */
NULL
,
/* fpDeletePrinterKey */
NULL
,
/* fpSeekPrinter */
fpSeekPrinter
,
NULL
,
/* fpDeletePrinterDriverEx */
NULL
,
/* fpAddPerMachineConnection */
NULL
,
/* fpDeletePerMachineConnection */
...
...
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