Piotr Caban : user32: Return window procedure pointer in WINPROC_AllocProc if it' s not possible to allocate handle.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 14 09:05:21 CDT 2016


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Wed Mar  9 13:51:21 2016 +0100

user32: Return window procedure pointer in WINPROC_AllocProc if it's not possible to allocate handle.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/winproc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c
index 3642109..507a36a 100644
--- a/dlls/user32/winproc.c
+++ b/dlls/user32/winproc.c
@@ -165,7 +165,7 @@ static inline WINDOWPROC *alloc_winproc( WNDPROC func, BOOL unicode )
                    proc_to_handle(proc), unicode ? 'W' : 'A', func,
                    winproc_used, MAX_WINPROCS );
         }
-        else FIXME( "too many winprocs, cannot allocate one for %p\n", func );
+        else WARN( "too many winprocs, cannot allocate one for %p\n", func );
     }
     else TRACE( "reusing %p for %p\n", proc_to_handle(proc), func );
 
@@ -309,7 +309,7 @@ WNDPROC WINPROC_AllocProc( WNDPROC func, BOOL unicode )
 {
     WINDOWPROC *proc;
 
-    if (!(proc = alloc_winproc( func, unicode ))) return NULL;
+    if (!(proc = alloc_winproc( func, unicode ))) return func;
     if (proc == WINPROC_PROC16) return func;
     return proc_to_handle( proc );
 }




More information about the wine-cvs mailing list