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
b08c400f
Commit
b08c400f
authored
Dec 09, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Call the EnumChildWindows callback using a wrapper.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5ef460d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
win.c
dlls/user32/win.c
+26
-1
No files found.
dlls/user32/win.c
View file @
b08c400f
...
...
@@ -3356,6 +3356,31 @@ BOOL WINAPI EnumDesktopWindows( HDESK desktop, WNDENUMPROC func, LPARAM lparam )
}
#ifdef __i386__
/* Some apps pass a non-stdcall proc to EnumChildWindows,
* so we need a small assembly wrapper to call the proc.
*/
extern
LRESULT
enum_callback_wrapper
(
WNDENUMPROC
proc
,
HWND
hwnd
,
LPARAM
lparam
);
__ASM_GLOBAL_FUNC
(
enum_callback_wrapper
,
"pushl %ebp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %ebp,0
\n\t
"
)
"movl %esp,%ebp
\n\t
"
__ASM_CFI
(
".cfi_def_cfa_register %ebp
\n\t
"
)
"pushl 16(%ebp)
\n\t
"
"pushl 12(%ebp)
\n\t
"
"call *8(%ebp)
\n\t
"
"leave
\n\t
"
__ASM_CFI
(
".cfi_def_cfa %esp,4
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
"ret"
)
#else
static
inline
LRESULT
enum_callback_wrapper
(
WNDENUMPROC
proc
,
HWND
hwnd
,
LPARAM
lparam
)
{
return
proc
(
hwnd
,
lparam
);
}
#endif
/* __i386__ */
/**********************************************************************
* WIN_EnumChildWindows
*
...
...
@@ -3373,7 +3398,7 @@ static BOOL WIN_EnumChildWindows( HWND *list, WNDENUMPROC func, LPARAM lParam )
/* Build children list first */
childList
=
WIN_ListChildren
(
*
list
);
ret
=
func
(
*
list
,
lParam
);
ret
=
enum_callback_wrapper
(
func
,
*
list
,
lParam
);
if
(
childList
)
{
...
...
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