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

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2016-03-09 13:51:21 +01:00 committed by Alexandre Julliard
parent ecf9e9135d
commit 7cb0e78dbf
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}