mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 12:50:53 +00:00
kernel32: Clear the extra memory in LocalReAlloc16(h, bigger_size, LMEM_ZEROINIT).
This commit is contained in:
parent
9a295e7f87
commit
db4586d274
@ -1330,6 +1330,9 @@ HLOCAL16 WINAPI LocalReAlloc16( HLOCAL16 handle, WORD size, UINT16 flags )
|
||||
{
|
||||
TRACE("size increase, making new free block\n");
|
||||
LOCAL_GrowArenaUpward(ds, arena, nextarena - arena);
|
||||
if (flags & LMEM_ZEROINIT)
|
||||
memset((char *)pArena + oldsize, 0, size - oldsize);
|
||||
|
||||
TRACE("returning %04x\n", handle );
|
||||
return handle;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user