From 6b4de5102734de7dd77222bdb74f8cf5181022d8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 28 Apr 2020 11:36:26 +0200 Subject: [PATCH] ntdll: Don't use a custom alignment for large heap blocks. Signed-off-by: Alexandre Julliard --- dlls/ntdll/heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 6bdbd89f8cf..0080a89fddb 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -726,7 +726,8 @@ static void *allocate_large_block( HEAP *heap, DWORD flags, SIZE_T size ) LPVOID address = NULL; if (block_size < size) return NULL; /* overflow */ - if (virtual_alloc_aligned( &address, 0, &block_size, MEM_COMMIT, get_protection_type( flags ), 5 )) + if (NtAllocateVirtualMemory( NtCurrentProcess(), &address, 0, &block_size, + MEM_COMMIT, get_protection_type( flags ))) { WARN("Could not allocate block for %08lx bytes\n", size ); return NULL;