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

Alexandre Julliard julliard at winehq.org
Tue Dec 22 09:58:56 CST 2009


Module: wine
Branch: master
Commit: 5a35c490a186d3760840a72af89cd6aafd926f05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5a35c490a186d3760840a72af89cd6aafd926f05

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec 21 19:48:12 2009 +0100

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

---

 dlls/user32/msg16.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/msg16.c b/dlls/user32/msg16.c
index b1cc938..0866875 100644
--- a/dlls/user32/msg16.c
+++ b/dlls/user32/msg16.c
@@ -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 */
     {




More information about the wine-cvs mailing list