Commit 5a35c490 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Always return the actual pointer instead of a winproc handle in WINPROC_GetProc16.

parent 13a9c037
...@@ -163,7 +163,8 @@ static WNDPROC16 alloc_win16_thunk( WNDPROC handle ) ...@@ -163,7 +163,8 @@ static WNDPROC16 alloc_win16_thunk( WNDPROC handle )
WINPROC_THUNK *thunk; WINPROC_THUNK *thunk;
UINT index = LOWORD( handle ); UINT index = LOWORD( handle );
if (index >= MAX_WINPROCS32) return (WNDPROC16)handle; /* already a 16-bit proc */ if (index >= MAX_WINPROCS32) /* already a 16-bit proc */
return winproc16_array[index - MAX_WINPROCS32];
if (!thunk_array) /* allocate the array and its selector */ if (!thunk_array) /* allocate the array and its selector */
{ {
......
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