Commit 7cb0e78d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32: Return window procedure pointer in WINPROC_AllocProc if it's not…

user32: Return window procedure pointer in WINPROC_AllocProc if it's not possible to allocate handle. Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ecf9e913
...@@ -165,7 +165,7 @@ static inline WINDOWPROC *alloc_winproc( WNDPROC func, BOOL unicode ) ...@@ -165,7 +165,7 @@ static inline WINDOWPROC *alloc_winproc( WNDPROC func, BOOL unicode )
proc_to_handle(proc), unicode ? 'W' : 'A', func, proc_to_handle(proc), unicode ? 'W' : 'A', func,
winproc_used, MAX_WINPROCS ); 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 ); else TRACE( "reusing %p for %p\n", proc_to_handle(proc), func );
...@@ -309,7 +309,7 @@ WNDPROC WINPROC_AllocProc( WNDPROC func, BOOL unicode ) ...@@ -309,7 +309,7 @@ WNDPROC WINPROC_AllocProc( WNDPROC func, BOOL unicode )
{ {
WINDOWPROC *proc; WINDOWPROC *proc;
if (!(proc = alloc_winproc( func, unicode ))) return NULL; if (!(proc = alloc_winproc( func, unicode ))) return func;
if (proc == WINPROC_PROC16) return func; if (proc == WINPROC_PROC16) return func;
return proc_to_handle( proc ); return proc_to_handle( proc );
} }
......
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