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
3747221d
Commit
3747221d
authored
Jan 30, 1999
by
Bernd Herd
Committed by
Alexandre Julliard
Jan 30, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper 16->32 message conversion in FILEDLG_CallWindowProc.
parent
ec721121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
22 deletions
+46
-22
commdlg.c
misc/commdlg.c
+46
-22
No files found.
misc/commdlg.c
View file @
3747221d
...
...
@@ -532,45 +532,69 @@ static BOOL32 FILEDLG_CallWindowProc(LPOPENFILENAME16 lpofn,HWND32 hwnd,
UINT32
wMsg
,
WPARAM32
wParam
,
LPARAM
lParam
)
{
BOOL32
needstruct
;
BOOL32
needstruct
;
BOOL32
result
=
FALSE
;
WINDOWPROCTYPE
ProcType
;
/* Type of Hook Function to be called. */
/* TRUE if lParam points to the OPENFILENAME16 Structure */
needstruct
=
(
PTR_SEG_TO_LIN
(
lParam
)
==
lpofn
);
ProcType
=
(
lpofn
->
Flags
&
OFN_WINE32
)
?
(
lpofn
->
Flags
&
OFN_UNICODE
)
/* 32-Bit call to GetOpenFileName */
?
WIN_PROC_32W
:
WIN_PROC_32A
:
WIN_PROC_16
;
/* 16-Bit call to GetOpenFileName */
if
(
!
(
lpofn
->
Flags
&
OFN_WINE32
))
/* Call to 16-Bit Hooking function... No Problem at all. */
return
(
BOOL32
)
CallWindowProc16
(
lpofn
->
lpfnHook
,
hwnd
,(
UINT16
)
wMsg
,(
WPARAM16
)
wParam
,
lParam
);
/* |OFN_WINE32 */
if
(
lpofn
->
Flags
&
OFN_UNICODE
)
{
if
(
needstruct
)
{
OPENFILENAME32W
ofnw
;
/* FIXME: probably needs more converted */
ofnw
.
lCustData
=
lpofn
->
lCustData
;
return
(
BOOL32
)
CallWindowProc32W
(
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,(
LPARAM
)
&
ofnw
);
}
else
return
(
BOOL32
)
CallWindowProc32W
(
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,
lParam
);
}
/* ! |OFN_UNICODE */
if
(
needstruct
)
{
if
(
needstruct
)
{
/* Parameter lParam points to lpofn... Convert Structure Data... */
if
(
lpofn
->
Flags
&
OFN_UNICODE
)
{
OPENFILENAME32W
ofnw
;
/* FIXME: probably needs more converted */
ofnw
.
lCustData
=
lpofn
->
lCustData
;
return
(
BOOL32
)
CallWindowProc32W
(
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,(
LPARAM
)
&
ofnw
);
}
else
/* ! |OFN_UNICODE */
{
OPENFILENAME32A
ofna
;
/* FIXME: probably needs more converted */
ofna
.
lCustData
=
lpofn
->
lCustData
;
return
(
BOOL32
)
CallWindowProc32A
(
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,(
LPARAM
)
&
ofna
);
}
else
return
(
BOOL32
)
CallWindowProc32A
(
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,
lParam
(
WNDPROC32
)
lpofn
->
lpfnHook
,
hwnd
,
wMsg
,
wParam
,(
LPARAM
)
&
ofna
);
}
}
else
/* ! needstruct */
{
HWINDOWPROC
hWindowProc
=
NULL
;
if
(
WINPROC_SetProc
(
&
hWindowProc
,
lpofn
->
lpfnHook
,
ProcType
,
WIN_PROC_WINDOW
))
{
/* Call Window Procedure converting 16-Bit Type Parameters to 32-Bit Type Parameters */
result
=
CallWindowProc16
(
(
WNDPROC16
)
hWindowProc
,
hwnd
,
wMsg
,
wParam
,
lParam
);
result
=
LOWORD
(
result
);
WINPROC_FreeProc
(
hWindowProc
,
WIN_PROC_WINDOW
);
}
return
result
;
}
}
/***********************************************************************
* FILEDLG_WMInitDialog [internal]
*/
...
...
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