Commit cb060d64 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Support calling a 32-bit procedure even without a corresponding thunk in CallWindowProc16.

parent ce505590
......@@ -1536,8 +1536,11 @@ LRESULT WINAPI CallWindowProc16( WNDPROC16 func, HWND16 hwnd, UINT16 msg,
if (index == -1 || index >= MAX_WINPROCS32)
call_window_proc16( hwnd, msg, wParam, lParam, &result, func );
else
WINPROC_CallProc16To32A( call_window_proc_callback, hwnd, msg, wParam, lParam, &result,
thunk_array[index].proc );
{
WNDPROC proc = (WNDPROC)func;
if (thunk_array && thunk_array[index].proc) proc = thunk_array[index].proc;
WINPROC_CallProc16To32A( call_window_proc_callback, hwnd, msg, wParam, lParam, &result, proc );
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment