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");
|
TRACE("size increase, making new free block\n");
|
||||||
LOCAL_GrowArenaUpward(ds, arena, nextarena - arena);
|
LOCAL_GrowArenaUpward(ds, arena, nextarena - arena);
|
||||||
|
if (flags & LMEM_ZEROINIT)
|
||||||
|
memset((char *)pArena + oldsize, 0, size - oldsize);
|
||||||
|
|
||||||
TRACE("returning %04x\n", handle );
|
TRACE("returning %04x\n", handle );
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue