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
19219484
Commit
19219484
authored
Jun 13, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store print dlg structure in a property instead of DWL_USER.
parent
72db9a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
printdlg.c
dlls/commdlg/printdlg.c
+4
-4
No files found.
dlls/commdlg/printdlg.c
View file @
19219484
...
...
@@ -2006,12 +2006,12 @@ BOOL WINAPI PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
LRESULT
res
=
FALSE
;
if
(
uMsg
!=
WM_INITDIALOG
)
{
PrintStructures
=
(
PRINT_PTRA
*
)
GetWindowLongA
(
hDlg
,
DWL_USER
);
PrintStructures
=
(
PRINT_PTRA
*
)
GetPropA
(
hDlg
,
"__WINE_PRINTDLGDATA"
);
if
(
!
PrintStructures
)
return
FALSE
;
}
else
{
PrintStructures
=
(
PRINT_PTRA
*
)
lParam
;
Set
WindowLongA
(
hDlg
,
DWL_USER
,
lParam
);
Set
PropA
(
hDlg
,
"__WINE_PRINTDLGDATA"
,
lParam
);
res
=
PRINTDLG_WMInitDialog
(
hDlg
,
wParam
,
PrintStructures
);
if
(
PrintStructures
->
dlg
.
lpPrintDlg
->
Flags
&
PD_ENABLEPRINTHOOK
)
...
...
@@ -3466,12 +3466,12 @@ LRESULT WINAPI PrintDlgProc16(HWND16 hDlg, UINT16 uMsg, WPARAM16 wParam,
LRESULT
res
=
FALSE
;
if
(
uMsg
!=
WM_INITDIALOG
)
{
PrintStructures
=
(
PRINT_PTRA
*
)
GetWindowLongA
(
hDlg
,
DWL_USER
);
PrintStructures
=
(
PRINT_PTRA
*
)
GetPropA
(
hDlg
,
"__WINE_PRINTDLGDATA"
);
if
(
!
PrintStructures
)
return
FALSE
;
}
else
{
PrintStructures
=
(
PRINT_PTRA
*
)
lParam
;
Set
WindowLongA
(
hDlg
,
DWL_USER
,
lParam
);
Set
PropA
(
hDlg
,
"__WINE_PRINTDLGDATA"
,
lParam
);
res
=
PRINTDLG_WMInitDialog16
(
hDlg
,
wParam
,
PrintStructures
);
if
(
PrintStructures
->
dlg
.
lpPrintDlg16
->
Flags
&
PD_ENABLEPRINTHOOK
)
{
...
...
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