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
74be22b7
Commit
74be22b7
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: Support Port handles in EndDocPrinter.
parent
f079c02f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
provider.c
dlls/localspl/provider.c
+15
-2
No files found.
dlls/localspl/provider.c
View file @
74be22b7
...
...
@@ -1697,7 +1697,8 @@ 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
.
pfnStartDocPort
)
||
!
port
->
mon
->
monitor
.
pfnClosePort
||
!
port
->
mon
->
monitor
.
pfnStartDocPort
||
!
port
->
mon
->
monitor
.
pfnEndDocPort
)
{
FIXME
(
"port not supported: %s
\n
"
,
debugstr_w
(
name
));
free
(
port_name
);
...
...
@@ -3595,7 +3596,19 @@ static BOOL WINAPI fpEndDocPrinter(HANDLE hprinter)
TRACE
(
"%p
\n
"
,
hprinter
);
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
;
return
port
->
mon
->
monitor
.
pfnEndDocPort
(
port
->
hport
);
}
if
(
printer
->
header
.
type
!=
HANDLE_PRINTER
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
...
...
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