Alexandre Julliard : ntdll: Don't use a custom alignment for large heap blocks.
Alexandre Julliard
julliard at winehq.org
Tue Apr 28 16:32:21 CDT 2020
Module: wine
Branch: master
Commit: 6b4de5102734de7dd77222bdb74f8cf5181022d8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6b4de5102734de7dd77222bdb74f8cf5181022d8
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 28 11:36:26 2020 +0200
ntdll: Don't use a custom alignment for large heap blocks.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 6bdbd89f8c..0080a89fdd 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;
More information about the wine-cvs
mailing list