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
c4b133e2
Commit
c4b133e2
authored
May 31, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Simplify notification helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d93ae6ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
29 deletions
+20
-29
filedlg.c
dlls/comdlg32/filedlg.c
+20
-29
No files found.
dlls/comdlg32/filedlg.c
View file @
c4b133e2
...
...
@@ -853,38 +853,29 @@ static HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
LRESULT
SendCustomDlgNotificationMessage
(
HWND
hwndParentDlg
,
UINT
uCode
)
{
FileOpenDlgInfos
*
fodInfos
=
get_filedlg_infoptr
(
hwndParentDlg
);
LRESULT
hook_result
=
0
;
LRESULT
hook_result
;
OFNOTIFYW
ofnNotify
;
TRACE
(
"%p
0x%04x
\n
"
,
hwndParentDlg
,
uCode
);
TRACE
(
"%p
%d
\n
"
,
hwndParentDlg
,
uCode
);
if
(
!
fodInfos
)
return
0
;
if
(
!
fodInfos
||
!
fodInfos
->
DlgInfos
.
hwndCustomDlg
)
return
0
;
TRACE
(
"CALL NOTIFY for %d
\n
"
,
uCode
);
ofnNotify
.
hdr
.
hwndFrom
=
hwndParentDlg
;
ofnNotify
.
hdr
.
idFrom
=
0
;
ofnNotify
.
hdr
.
code
=
uCode
;
ofnNotify
.
lpOFN
=
fodInfos
->
ofnInfos
;
ofnNotify
.
pszFile
=
NULL
;
if
(
fodInfos
->
unicode
)
hook_result
=
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
ofnNotify
);
else
hook_result
=
SendMessageA
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
ofnNotify
);
TRACE
(
"RET NOTIFY retval %#lx
\n
"
,
hook_result
);
if
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
)
{
TRACE
(
"CALL NOTIFY for %x
\n
"
,
uCode
);
if
(
fodInfos
->
unicode
)
{
OFNOTIFYW
ofnNotify
;
ofnNotify
.
hdr
.
hwndFrom
=
hwndParentDlg
;
ofnNotify
.
hdr
.
idFrom
=
0
;
ofnNotify
.
hdr
.
code
=
uCode
;
ofnNotify
.
lpOFN
=
fodInfos
->
ofnInfos
;
ofnNotify
.
pszFile
=
NULL
;
hook_result
=
SendMessageW
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,(
LPARAM
)
&
ofnNotify
);
}
else
{
OFNOTIFYA
ofnNotify
;
ofnNotify
.
hdr
.
hwndFrom
=
hwndParentDlg
;
ofnNotify
.
hdr
.
idFrom
=
0
;
ofnNotify
.
hdr
.
code
=
uCode
;
ofnNotify
.
lpOFN
=
(
LPOPENFILENAMEA
)
fodInfos
->
ofnInfos
;
ofnNotify
.
pszFile
=
NULL
;
hook_result
=
SendMessageA
(
fodInfos
->
DlgInfos
.
hwndCustomDlg
,
WM_NOTIFY
,
0
,(
LPARAM
)
&
ofnNotify
);
}
TRACE
(
"RET NOTIFY
\n
"
);
}
TRACE
(
"Retval: 0x%08lx
\n
"
,
hook_result
);
return
hook_result
;
}
...
...
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