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
c9ae38e4
Commit
c9ae38e4
authored
Mar 09, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Call window procedure even if we're out of winproc handles.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55a5bac5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
winproc.c
dlls/user32/winproc.c
+14
-6
No files found.
dlls/user32/winproc.c
View file @
c9ae38e4
...
...
@@ -876,6 +876,7 @@ BOOL WINPROC_call_window( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
WND
*
wndPtr
;
WNDPROC
func
;
WINDOWPROC
*
proc
;
BOOL
unicode_win
;
if
(
!
(
wndPtr
=
WIN_GetPtr
(
hwnd
)))
return
FALSE
;
if
(
wndPtr
==
WND_OTHER_PROCESS
||
wndPtr
==
WND_DESKTOP
)
return
FALSE
;
...
...
@@ -886,10 +887,9 @@ BOOL WINPROC_call_window( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
}
func
=
wndPtr
->
winproc
;
proc
=
handle_to_proc
(
wndPtr
->
winproc
);
unicode_win
=
wndPtr
->
flags
&
WIN_ISUNICODE
;
WIN_ReleasePtr
(
wndPtr
);
if
(
!
proc
)
return
TRUE
;
if
(
thread_info
->
recursion_count
>
MAX_WINPROC_RECURSION
)
return
FALSE
;
thread_info
->
recursion_count
++
;
...
...
@@ -897,19 +897,27 @@ BOOL WINPROC_call_window( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
{
if
(
proc
==
WINPROC_PROC16
)
WINPROC_CallProcWtoA
(
wow_handlers
.
call_window_proc
,
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
);
else
if
(
proc
->
procW
)
else
if
(
proc
&&
proc
->
procW
)
call_window_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
result
,
proc
->
procW
);
else
else
if
(
proc
)
WINPROC_CallProcWtoA
(
call_window_proc
,
hwnd
,
msg
,
wParam
,
lParam
,
result
,
proc
->
procA
);
else
if
(
unicode_win
)
call_window_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
);
else
WINPROC_CallProcWtoA
(
call_window_proc
,
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
);
}
else
{
if
(
proc
==
WINPROC_PROC16
)
wow_handlers
.
call_window_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
);
else
if
(
proc
->
procA
)
else
if
(
proc
&&
proc
->
procA
)
call_window_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
result
,
proc
->
procA
);
else
else
if
(
proc
)
WINPROC_CallProcAtoW
(
call_window_proc
,
hwnd
,
msg
,
wParam
,
lParam
,
result
,
proc
->
procW
,
mapping
);
else
if
(
unicode_win
)
WINPROC_CallProcAtoW
(
call_window_proc
,
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
,
mapping
);
else
call_window_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
result
,
func
);
}
thread_info
->
recursion_count
--
;
return
TRUE
;
...
...
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