mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-05 07:16:41 +00:00
ntdll: Don't switch from small to large block when HEAP_REALLOC_IN_PLACE_ONLY is specified.
This commit is contained in:
parent
31dab8f0db
commit
7f64b8a9a9
|
@ -1564,6 +1564,7 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, SIZE_T size
|
|||
|
||||
if (rounded_size >= HEAP_MIN_LARGE_BLOCK_SIZE && (flags & HEAP_GROWABLE))
|
||||
{
|
||||
if (flags & HEAP_REALLOC_IN_PLACE_ONLY) goto oom;
|
||||
if (!(ret = allocate_large_block( heapPtr, flags, size ))) goto oom;
|
||||
notify_alloc( ret, size, flags & HEAP_ZERO_MEMORY );
|
||||
memcpy( ret, pArena + 1, oldActualSize );
|
||||
|
|
Loading…
Reference in a new issue