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
e365a233
Commit
e365a233
authored
Jan 03, 1999
by
NF Stevens
Committed by
Alexandre Julliard
Jan 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the return type of DLGPROC type and mask out the unset highword of
the return when a 16 bit dialog proc is called.
parent
86240453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
20 deletions
+29
-20
wintypes.h
include/wintypes.h
+2
-2
defdlg.c
windows/defdlg.c
+27
-18
No files found.
include/wintypes.h
View file @
e365a233
...
...
@@ -210,8 +210,8 @@ DECLARE_HANDLE(HRASCONN);
typedef
BOOL32
(
CALLBACK
*
DATEFMT_ENUMPROC32A
)(
LPSTR
);
typedef
BOOL32
(
CALLBACK
*
DATEFMT_ENUMPROC32W
)(
LPWSTR
);
DECL_WINELIB_TYPE_AW
(
DATEFMT_ENUMPROC
)
typedef
LRESULT
(
CALLBACK
*
DLGPROC16
)(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
LRESULT
(
CALLBACK
*
DLGPROC32
)(
HWND32
,
UINT32
,
WPARAM32
,
LPARAM
);
typedef
BOOL16
(
CALLBACK
*
DLGPROC16
)(
HWND16
,
UINT16
,
WPARAM16
,
LPARAM
);
typedef
BOOL32
(
CALLBACK
*
DLGPROC32
)(
HWND32
,
UINT32
,
WPARAM32
,
LPARAM
);
DECL_WINELIB_TYPE
(
DLGPROC
)
typedef
LRESULT
(
CALLBACK
*
DRIVERPROC16
)(
DWORD
,
HDRVR16
,
UINT16
,
LPARAM
,
LPARAM
);
typedef
LRESULT
(
CALLBACK
*
DRIVERPROC32
)(
DWORD
,
HDRVR32
,
UINT32
,
LPARAM
,
LPARAM
);
...
...
windows/defdlg.c
View file @
e365a233
...
...
@@ -263,12 +263,15 @@ LRESULT WINAPI DefDlgProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc16
(
(
WNDPROC16
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
@@ -323,12 +326,15 @@ LRESULT WINAPI DefDlgProc32A( HWND32 hwnd, UINT32 msg,
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc32A
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
@@ -383,12 +389,15 @@ LRESULT WINAPI DefDlgProc32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam,
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc32W
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
/* 16 bit dlg procs only return BOOL16 */
if
(
WINPROC_GetProcType
(
dlgInfo
->
dlgProc
)
==
WIN_PROC_16
)
result
=
LOWORD
(
result
);
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
...
...
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