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
2ca1de99
Commit
2ca1de99
authored
Aug 09, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Aug 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Return defaults for hDevMode and hDevNames.
parent
7959be38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
printdlg.c
dlls/comdlg32/printdlg.c
+10
-8
No files found.
dlls/comdlg32/printdlg.c
View file @
2ca1de99
...
...
@@ -3398,14 +3398,16 @@ BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) {
/* short cut exit, just return default values */
if
(
setupdlg
->
Flags
&
PSD_RETURNDEFAULT
)
{
DEVMODEA
*
dm
;
dm
=
GlobalLock
(
pdlg
.
hDevMode
);
PRINTDLG_PaperSizeA
(
&
pdlg
,
dm
->
u1
.
s1
.
dmPaperSize
,
&
setupdlg
->
ptPaperSize
);
GlobalUnlock
(
pdlg
.
hDevMode
);
setupdlg
->
ptPaperSize
.
x
=
_c_10mm2size
(
setupdlg
,
setupdlg
->
ptPaperSize
.
x
);
setupdlg
->
ptPaperSize
.
y
=
_c_10mm2size
(
setupdlg
,
setupdlg
->
ptPaperSize
.
y
);
return
TRUE
;
DEVMODEA
*
dm
;
setupdlg
->
hDevMode
=
pdlg
.
hDevMode
;
setupdlg
->
hDevNames
=
pdlg
.
hDevNames
;
dm
=
GlobalLock
(
pdlg
.
hDevMode
);
PRINTDLG_PaperSizeA
(
&
pdlg
,
dm
->
u1
.
s1
.
dmPaperSize
,
&
setupdlg
->
ptPaperSize
);
GlobalUnlock
(
pdlg
.
hDevMode
);
setupdlg
->
ptPaperSize
.
x
=
_c_10mm2size
(
setupdlg
,
setupdlg
->
ptPaperSize
.
x
);
setupdlg
->
ptPaperSize
.
y
=
_c_10mm2size
(
setupdlg
,
setupdlg
->
ptPaperSize
.
y
);
return
TRUE
;
}
/* get dialog template */
...
...
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