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
55fe39e0
Commit
55fe39e0
authored
Oct 22, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Do not crash with PageSetupDlg(NULL).
parent
d1d0c97c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
printdlg.c
dlls/comdlg32/printdlg.c
+12
-4
No files found.
dlls/comdlg32/printdlg.c
View file @
55fe39e0
...
...
@@ -3383,6 +3383,11 @@ BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) {
PageSetupDataA
*
pda
;
PRINTDLGA
pdlg
;
if
(
setupdlg
==
NULL
)
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_INITIALIZATION
);
return
FALSE
;
}
/* TRACE */
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
...
...
@@ -3399,11 +3404,8 @@ BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) {
setupdlg
->
hDevNames
,
setupdlg
->
hInstance
,
setupdlg
->
Flags
,
flagstr
);
}
/* Checking setupdlg structure */
if
(
setupdlg
==
NULL
)
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_INITIALIZATION
);
return
FALSE
;
}
if
(
setupdlg
->
lStructSize
!=
sizeof
(
PAGESETUPDLGA
))
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_STRUCTSIZE
);
return
FALSE
;
...
...
@@ -3488,6 +3490,12 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) {
PRINTDLGW
pdlg
;
FIXME
(
"Unicode implementation is not done yet
\n
"
);
if
(
setupdlg
==
NULL
)
{
COMDLG32_SetCommDlgExtendedError
(
CDERR_INITIALIZATION
);
return
FALSE
;
}
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
const
struct
pd_flags
*
pflag
=
psd_flags
;
...
...
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