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
82016c19
Commit
82016c19
authored
Dec 23, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Don't use the instance of the owner window for dialog boxes.
parent
0e00a61a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
filedlg.c
dlls/comdlg32/filedlg.c
+2
-6
printdlg.c
dlls/comdlg32/printdlg.c
+4
-2
No files found.
dlls/comdlg32/filedlg.c
View file @
82016c19
...
...
@@ -3867,7 +3867,6 @@ static BOOL GetFileName31A(LPOPENFILENAMEA lpofn, /* address of structure with d
UINT
dlgType
/* type dialogue : open/save */
)
{
HINSTANCE
hInst
;
BOOL
bRet
=
FALSE
;
PFD31_DATA
lfs
;
...
...
@@ -3877,8 +3876,7 @@ static BOOL GetFileName31A(LPOPENFILENAMEA lpofn, /* address of structure with d
lfs
=
FD31_AllocPrivate
((
LPARAM
)
lpofn
,
dlgType
,
FALSE
);
if
(
lfs
)
{
hInst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
lpofn
->
hwndOwner
,
GWLP_HINSTANCE
);
bRet
=
DialogBoxIndirectParamA
(
hInst
,
lfs
->
template
,
lpofn
->
hwndOwner
,
bRet
=
DialogBoxIndirectParamA
(
COMDLG32_hInstance
,
lfs
->
template
,
lpofn
->
hwndOwner
,
FD32_FileOpenDlgProc
,
(
LPARAM
)
lfs
);
FD31_DestroyPrivate
(
lfs
);
}
...
...
@@ -3896,7 +3894,6 @@ static BOOL GetFileName31W(LPOPENFILENAMEW lpofn, /* address of structure with d
UINT
dlgType
/* type dialogue : open/save */
)
{
HINSTANCE
hInst
;
BOOL
bRet
=
FALSE
;
PFD31_DATA
lfs
;
...
...
@@ -3905,8 +3902,7 @@ static BOOL GetFileName31W(LPOPENFILENAMEW lpofn, /* address of structure with d
lfs
=
FD31_AllocPrivate
((
LPARAM
)
lpofn
,
dlgType
,
TRUE
);
if
(
lfs
)
{
hInst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
lpofn
->
hwndOwner
,
GWLP_HINSTANCE
);
bRet
=
DialogBoxIndirectParamW
(
hInst
,
lfs
->
template
,
lpofn
->
hwndOwner
,
bRet
=
DialogBoxIndirectParamW
(
COMDLG32_hInstance
,
lfs
->
template
,
lpofn
->
hwndOwner
,
FD32_FileOpenDlgProc
,
(
LPARAM
)
lfs
);
FD31_DestroyPrivate
(
lfs
);
}
...
...
dlls/comdlg32/printdlg.c
View file @
82016c19
...
...
@@ -2080,7 +2080,6 @@ BOOL WINAPI PrintDlgA(LPPRINTDLGA lppd)
return
FALSE
;
}
hInst
=
(
HINSTANCE
)
GetWindowLongPtrA
(
lppd
->
hwndOwner
,
GWLP_HINSTANCE
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
const
struct
pd_flags
*
pflag
=
pd_flags
;
...
...
@@ -2173,6 +2172,8 @@ BOOL WINAPI PrintDlgA(LPPRINTDLGA lppd)
/* and create & process the dialog .
* -1 is failure, 0 is broken hwnd, everything else is ok.
*/
hInst
=
COMDLG32_hInstance
;
if
(
lppd
->
Flags
&
(
PD_ENABLESETUPTEMPLATE
|
PD_ENABLEPRINTTEMPLATE
))
hInst
=
lppd
->
hInstance
;
bRet
=
(
0
<
DialogBoxIndirectParamA
(
hInst
,
ptr
,
lppd
->
hwndOwner
,
PrintDlgProcA
,
(
LPARAM
)
PrintStructures
));
...
...
@@ -2230,7 +2231,6 @@ BOOL WINAPI PrintDlgW(LPPRINTDLGW lppd)
return
FALSE
;
}
hInst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
lppd
->
hwndOwner
,
GWLP_HINSTANCE
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
const
struct
pd_flags
*
pflag
=
pd_flags
;
...
...
@@ -2323,6 +2323,8 @@ BOOL WINAPI PrintDlgW(LPPRINTDLGW lppd)
/* and create & process the dialog .
* -1 is failure, 0 is broken hwnd, everything else is ok.
*/
hInst
=
COMDLG32_hInstance
;
if
(
lppd
->
Flags
&
(
PD_ENABLESETUPTEMPLATE
|
PD_ENABLEPRINTTEMPLATE
))
hInst
=
lppd
->
hInstance
;
bRet
=
(
0
<
DialogBoxIndirectParamW
(
hInst
,
ptr
,
lppd
->
hwndOwner
,
PrintDlgProcW
,
(
LPARAM
)
PrintStructures
));
...
...
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