mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 16:07:20 +00:00
user.exe: Clear out the thunk array to catch invalid winprocs.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48814 Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9bbb66fdf7
commit
64bd952b85
|
@ -152,7 +152,8 @@ static WNDPROC16 alloc_win16_thunk( WNDPROC handle )
|
|||
{
|
||||
assert( MAX_WINPROCS16 * sizeof(WINPROC_THUNK) <= 0x10000 );
|
||||
|
||||
if (!(thunk_selector = GlobalAlloc16( GMEM_FIXED, MAX_WINPROCS16 * sizeof(WINPROC_THUNK) )))
|
||||
if (!(thunk_selector = GlobalAlloc16( GMEM_FIXED | GMEM_ZEROINIT,
|
||||
MAX_WINPROCS16 * sizeof(WINPROC_THUNK) )))
|
||||
return NULL;
|
||||
PrestoChangoSelector16( thunk_selector, thunk_selector );
|
||||
thunk_array = GlobalLock16( thunk_selector );
|
||||
|
|
Loading…
Reference in a new issue