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
8fb1f0d0
Commit
8fb1f0d0
authored
Feb 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Assign to structs instead of using memcpy.
parent
050fa6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
printdlg.c
dlls/comdlg32/printdlg.c
+5
-5
No files found.
dlls/comdlg32/printdlg.c
View file @
8fb1f0d0
...
...
@@ -3232,7 +3232,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
if
(
uMsg
==
WM_INITDIALOG
)
{
/*Init dialog*/
pda
=
(
PageSetupDataA
*
)
lParam
;
pda
->
hDlg
=
hDlg
;
/* saving handle to main window to PageSetupDataA structure */
memcpy
(
&
pda
->
curdlg
,
pda
->
dlga
,
sizeof
(
pda
->
curdlg
))
;
pda
->
curdlg
=
*
pda
->
dlga
;
hDrawWnd
=
GetDlgItem
(
hDlg
,
rct1
);
TRACE
(
"set property to %p
\n
"
,
pda
);
...
...
@@ -3358,7 +3358,7 @@ PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
if
(
uMsg
==
WM_INITDIALOG
)
{
res
=
TRUE
;
pda
=
(
PageSetupDataW
*
)
lParam
;
memcpy
(
&
pda
->
curdlg
,
pda
,
sizeof
(
pda
->
curdlg
))
;
pda
->
curdlg
=
*
pda
->
dlga
;
SetPropW
(
hDlg
,
__WINE_PAGESETUPDLGDATA
,
pda
);
if
(
pda
->
dlga
->
Flags
&
PSD_ENABLEPAGESETUPHOOK
)
{
res
=
pda
->
dlga
->
lpfnPageSetupHook
(
hDlg
,
uMsg
,
wParam
,(
LPARAM
)
pda
->
dlga
);
...
...
@@ -3537,10 +3537,10 @@ BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) {
COMDLG32_SetCommDlgExtendedError
(
CDERR_LOADRESFAILURE
);
return
FALSE
;
}
pda
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pda
));
pda
->
dlga
=
setupdlg
;
memcpy
(
&
pda
->
pdlg
,
&
pdlg
,
sizeof
(
pdlg
))
;
pda
->
pdlg
=
pdlg
;
bRet
=
(
0
<
DialogBoxIndirectParamA
(
setupdlg
->
hInstance
,
...
...
@@ -3631,7 +3631,7 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) {
}
pdw
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pdw
));
pdw
->
dlga
=
setupdlg
;
memcpy
(
&
pdw
->
pdlg
,
&
pdlg
,
sizeof
(
pdlg
))
;
pdw
->
pdlg
=
pdlg
;
bRet
=
(
0
<
DialogBoxIndirectParamW
(
setupdlg
->
hInstance
,
...
...
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