Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
93475667
Commit
93475667
authored
Jan 10, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commdlg: Fix PrintDlg parameter checks.
parent
97194ec0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
printdlg.c
dlls/commdlg.dll16/printdlg.c
+5
-0
No files found.
dlls/commdlg.dll16/printdlg.c
View file @
93475667
...
...
@@ -107,6 +107,8 @@ BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 lppd )
PRINTDLGA
pd32
;
BOOL
ret
;
if
(
!
lppd
)
return
PrintDlgA
(
NULL
);
/* generate failure with CDERR_INITIALIZATION */
pd32
.
lStructSize
=
sizeof
(
pd32
);
pd32
.
Flags
=
lppd
->
Flags
&
~
(
PD_ENABLEPRINTTEMPLATE
|
PD_ENABLEPRINTTEMPLATEHANDLE
|
PD_ENABLESETUPTEMPLATE
|
PD_ENABLESETUPTEMPLATEHANDLE
|
...
...
@@ -128,6 +130,9 @@ BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 lppd )
if
(
lppd
->
Flags
&
PD_ENABLESETUPHOOK
)
FIXME
(
"custom setup hook %p no longer supported
\n
"
,
lppd
->
lpfnSetupHook
);
/* Generate failure with CDERR_STRUCTSIZE, when needed */
if
(
lppd
->
lStructSize
!=
sizeof
(
PRINTDLG16
))
pd32
.
lStructSize
--
;
if
((
ret
=
PrintDlgA
(
&
pd32
)))
{
lppd
->
hDC
=
HDC_16
(
pd32
.
hDC
);
...
...
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