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
0f7ed96f
Commit
0f7ed96f
authored
Dec 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Update dmFormName when merging DEVMODE structures.
parent
383318bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
driver.c
dlls/wineps.drv/driver.c
+6
-0
No files found.
dlls/wineps.drv/driver.c
View file @
0f7ed96f
...
...
@@ -117,6 +117,12 @@ void PSDRV_MergeDevmodes( PSDRV_DEVMODE *dm1, PSDRV_DEVMODE *dm2, PRINTERINFO *p
TRACE
(
"Changing page to %s %d x %d
\n
"
,
page
->
FullName
,
dm1
->
dmPublic
.
u1
.
s1
.
dmPaperWidth
,
dm1
->
dmPublic
.
u1
.
s1
.
dmPaperLength
);
if
(
dm1
->
dmPublic
.
dmSize
>=
FIELD_OFFSET
(
DEVMODEW
,
dmFormName
)
+
CCHFORMNAME
*
sizeof
(
WCHAR
))
{
MultiByteToWideChar
(
CP_ACP
,
0
,
page
->
FullName
,
-
1
,
dm1
->
dmPublic
.
dmFormName
,
CCHFORMNAME
);
dm1
->
dmPublic
.
dmFields
|=
DM_FORMNAME
;
}
}
else
TRACE
(
"Trying to change to unsupported pagesize %d
\n
"
,
dm2
->
dmPublic
.
u1
.
s1
.
dmPaperSize
);
...
...
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