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
0098ab67
Commit
0098ab67
authored
Sep 19, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Sep 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop trashing devmode if in and out devmodes are the same.
parent
502e4f5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
prtdrv.c
graphics/win16drv/prtdrv.c
+9
-13
No files found.
graphics/win16drv/prtdrv.c
View file @
0098ab67
...
...
@@ -833,10 +833,10 @@ INT WIN16DRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
DWORD
dwMode
)
{
LOADED_PRINTER_DRIVER
*
pLPD
=
LoadPrinterDriver
(
lpszDriver
);
LP
VOID
lpSegOut
=
NULL
,
lpSegIn
=
NULL
;
LP
DEVMODEA
lpSegOut
=
NULL
,
lpSegIn
=
NULL
;
LPSTR
lpSegDevice
,
lpSegPort
,
lpSegProfile
;
INT16
wRet
;
WORD
wOutSize
=
0
;
WORD
wOutSize
=
0
,
wInSize
=
0
;
if
(
!
pLPD
)
return
-
1
;
...
...
@@ -850,19 +850,17 @@ INT WIN16DRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
if
(
lpdmOutput
)
{
/* We don't know how big this will be so we call the driver's
ExtDeviceMode to find out */
wOutSize
=
PRTDRV_CallTo16_word_wwlllllw
(
pLPD
->
fn
[
FUNC_EXTDEVICEMODE
],
hwnd
,
pLPD
->
hInst
,
0
,
SEGPTR_GET
(
lpSegDevice
),
SEGPTR_GET
(
lpSegPort
),
0
,
SEGPTR_GET
(
lpSegProfile
),
0
);
wOutSize
=
PRTDRV_CallTo16_word_wwlllllw
(
pLPD
->
fn
[
FUNC_EXTDEVICEMODE
],
hwnd
,
pLPD
->
hInst
,
0
,
SEGPTR_GET
(
lpSegDevice
),
SEGPTR_GET
(
lpSegPort
),
0
,
SEGPTR_GET
(
lpSegProfile
),
0
);
lpSegOut
=
SEGPTR_ALLOC
(
wOutSize
);
memcpy
(
lpSegOut
,
lpdmOutput
,
wOutSize
);
/* probably unnecessary */
}
if
(
lpdmInput
)
{
/* This time we get the information from the fields */
lpSegIn
=
SEGPTR_ALLOC
(
lpdmInput
->
dmSize
+
lpdmInput
->
dmDriverExtra
)
;
memcpy
(
lpSegIn
,
lpdmInput
,
lpdmInput
->
dmSize
+
lpdmInput
->
dmDriverExtra
);
wInSize
=
lpdmInput
->
dmSize
+
lpdmInput
->
dmDriverExtra
;
lpSegIn
=
SEGPTR_ALLOC
(
wInSize
);
memcpy
(
lpSegIn
,
lpdmInput
,
wInSize
);
}
wRet
=
PRTDRV_CallTo16_word_wwlllllw
(
pLPD
->
fn
[
FUNC_EXTDEVICEMODE
],
hwnd
,
pLPD
->
hInst
,
...
...
@@ -877,8 +875,6 @@ INT WIN16DRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
SEGPTR_FREE
(
lpSegOut
);
}
if
(
lpSegIn
)
{
memcpy
(
lpdmInput
,
lpSegIn
,
lpdmInput
->
dmSize
+
lpdmInput
->
dmDriverExtra
);
SEGPTR_FREE
(
lpSegIn
);
}
SEGPTR_FREE
(
lpSegDevice
);
...
...
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