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

This commit is contained in:
Alexandre Julliard 2009-12-21 15:01:02 +01:00
parent ce50559013
commit cb060d6449
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}