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
b4b39bfb
Commit
b4b39bfb
authored
Oct 01, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Pass default DEVMODE to winspool in CreateDC.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55670
parent
338cb126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dc.c
dlls/gdi32/dc.c
+7
-1
No files found.
dlls/gdi32/dc.c
View file @
b4b39bfb
...
...
@@ -235,6 +235,12 @@ static BOOL print_copy_devmode( struct print *print, const DEVMODEW *devmode )
HDC
WINAPI
CreateDCW
(
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
devmode
)
{
PRINTER_DEFAULTSW
prn_defaults
=
{
.
pDatatype
=
NULL
,
.
pDevMode
=
(
DEVMODEW
*
)
devmode
,
.
DesiredAccess
=
PRINTER_ACCESS_USE
};
UNICODE_STRING
device_str
,
output_str
;
driver_entry_point
entry_point
=
NULL
;
const
WCHAR
*
display
=
NULL
,
*
p
;
...
...
@@ -280,7 +286,7 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
ERR
(
"no driver found for %s
\n
"
,
debugstr_w
(
buf
)
);
return
0
;
}
else
if
(
!
OpenPrinterW
(
(
WCHAR
*
)
device
,
&
hspool
,
NULL
))
else
if
(
!
OpenPrinterW
(
(
WCHAR
*
)
device
,
&
hspool
,
&
prn_defaults
))
{
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