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
0f53dbf3
Commit
0f53dbf3
authored
Nov 04, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify existing extra size of WINEPS Devmode structure.
Make ExtDeviceMode16 in WINEPS return the correct size.
parent
63e8a260
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
driver.c
dlls/wineps/driver.c
+2
-2
init.c
dlls/wineps/init.c
+1
-1
No files found.
dlls/wineps/driver.c
View file @
0f53dbf3
...
...
@@ -285,7 +285,7 @@ hwnd, hDriver, lpdmOutput, lpszDevice, lpszPort, lpdmInput, lpszProfile,
fwMode
);
if
(
!
fwMode
)
return
sizeof
(
DEVMODEA
);
/* Just copy dmPublic bit of PSDRV_DEVMODE */
return
pi
->
Devmode
->
dmPublic
.
dmSize
+
pi
->
Devmode
->
dmPublic
.
dmDriverExtra
;
if
((
fwMode
&
DM_MODIFY
)
&&
lpdmInput
)
{
TRACE
(
"DM_MODIFY set. devIn->dmFields = %08lx
\n
"
,
lpdmInput
->
dmFields
);
...
...
@@ -337,7 +337,7 @@ fwMode);
if
((
fwMode
&
DM_COPY
)
||
(
fwMode
&
DM_UPDATE
))
{
if
(
lpdmOutput
)
memcpy
(
lpdmOutput
,
pi
->
Devmode
,
sizeof
(
DEVMODEA
)
);
memcpy
(
lpdmOutput
,
pi
->
Devmode
,
pi
->
Devmode
->
dmPublic
.
dmSize
+
pi
->
Devmode
->
dmPublic
.
dmDriverExtra
);
else
FIXME
(
"lpdmOutput is NULL what should we do??
\n
"
);
}
...
...
dlls/wineps/init.c
View file @
0f53dbf3
...
...
@@ -46,7 +46,7 @@ static PSDRV_DEVMODEA DefaultDevmode =
/* dmSpecVersion */
0x30a
,
/* dmDriverVersion */
0x001
,
/* dmSize */
sizeof
(
DEVMODEA
),
/* dmDriverExtra */
0
,
/* dmDriverExtra */
sizeof
(
PSDRV_DEVMODEA
)
-
sizeof
(
DEVMODEA
)
,
/* dmFields */
DM_ORIENTATION
|
DM_PAPERSIZE
|
DM_SCALE
|
DM_COPIES
|
DM_DEFAULTSOURCE
|
DM_COLOR
|
DM_DUPLEX
|
DM_YRESOLUTION
|
DM_TTOPTION
,
...
...
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