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
f079c02f
Commit
f079c02f
authored
Dec 03, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Partially support Port handles in StartDocPrinter.
parent
62e017c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
provider.c
dlls/localspl/provider.c
+16
-2
No files found.
dlls/localspl/provider.c
View file @
f079c02f
...
...
@@ -1697,7 +1697,7 @@ static HANDLE port_alloc_handle(const WCHAR *name, BOOL *stop_search)
return
NULL
;
}
if
(
!
port
->
mon
->
monitor
.
pfnOpenPort
||
!
port
->
mon
->
monitor
.
pfnWritePort
||
!
port
->
mon
->
monitor
.
pfnClosePort
)
||
!
port
->
mon
->
monitor
.
pfnClosePort
||
!
port
->
mon
->
monitor
.
pfnStartDocPort
)
{
FIXME
(
"port not supported: %s
\n
"
,
debugstr_w
(
name
));
free
(
port_name
);
...
...
@@ -3199,7 +3199,21 @@ static DWORD WINAPI fpStartDocPrinter(HANDLE hprinter, DWORD level, BYTE *doc_in
hprinter
,
level
,
doc_info
,
debugstr_w
(
info
->
pDocName
),
debugstr_w
(
info
->
pOutputFile
),
debugstr_w
(
info
->
pDatatype
));
if
(
!
printer
||
printer
->
header
.
type
!=
HANDLE_PRINTER
)
if
(
!
printer
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
0
;
}
if
(
printer
->
header
.
type
==
HANDLE_PORT
)
{
port_t
*
port
=
(
port_t
*
)
hprinter
;
/* TODO: pass printer name and job_id */
return
port
->
mon
->
monitor
.
pfnStartDocPort
(
port
->
hport
,
NULL
,
0
,
level
,
doc_info
);
}
if
(
printer
->
header
.
type
!=
HANDLE_PRINTER
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
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