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

This commit is contained in:
Alexandre Julliard 2009-12-21 19:48:12 +01:00
parent 13a9c037f4
commit 5a35c490a1

View file

@ -163,7 +163,8 @@ static WNDPROC16 alloc_win16_thunk( WNDPROC handle )
WINPROC_THUNK *thunk;
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 */
{