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
83ba3189
Commit
83ba3189
authored
Apr 12, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Apr 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Pass the devmode to OpenPrinter.
parent
210f3e33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
escape.c
dlls/wineps.drv/escape.c
+7
-2
No files found.
dlls/wineps.drv/escape.c
View file @
83ba3189
...
...
@@ -415,6 +415,7 @@ INT PSDRV_StartDoc( PHYSDEV dev, const DOCINFOW *doc )
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
DOC_INFO_1W
di
;
PRINTER_DEFAULTSW
prn_def
;
TRACE
(
"(%p, %p) => %s, %s, %s
\n
"
,
physDev
,
doc
,
debugstr_w
(
doc
->
lpszDocName
),
debugstr_w
(
doc
->
lpszOutput
),
debugstr_w
(
doc
->
lpszDatatype
));
...
...
@@ -424,8 +425,12 @@ INT PSDRV_StartDoc( PHYSDEV dev, const DOCINFOW *doc )
return
0
;
}
/* FIXME: use PRINTER_DEFAULTS here */
if
(
!
OpenPrinterW
(
physDev
->
pi
->
friendly_name
,
&
physDev
->
job
.
hprinter
,
NULL
))
{
prn_def
.
pDatatype
=
NULL
;
prn_def
.
pDevMode
=
&
physDev
->
pi
->
Devmode
->
dmPublic
;
prn_def
.
DesiredAccess
=
PRINTER_ACCESS_USE
;
if
(
!
OpenPrinterW
(
physDev
->
pi
->
friendly_name
,
&
physDev
->
job
.
hprinter
,
&
prn_def
))
{
WARN
(
"OpenPrinter(%s, ...) failed: %d
\n
"
,
debugstr_w
(
physDev
->
pi
->
friendly_name
),
GetLastError
());
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