Alexandre Julliard : ntdll: Large heap blocks don't need to be 64k aligned.

Alexandre Julliard julliard at winehq.org
Tue Jun 30 08:33:33 CDT 2009


Module: wine
Branch: master
Commit: c03991be68d1cf2d3a4b2410d3445d84e240777b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c03991be68d1cf2d3a4b2410d3445d84e240777b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 30 14:06:55 2009 +0200

ntdll: Large heap blocks don't need to be 64k aligned.

---

 dlls/ntdll/heap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c
index 5466a54..06490ba 100644
--- a/dlls/ntdll/heap.c
+++ b/dlls/ntdll/heap.c
@@ -647,7 +647,7 @@ static void *allocate_large_block( HEAP *heap, DWORD flags, SIZE_T size )
     LPVOID address = NULL;
 
     if (block_size < size) return NULL;  /* overflow */
-    if (NtAllocateVirtualMemory( NtCurrentProcess(), &address, 0,
+    if (NtAllocateVirtualMemory( NtCurrentProcess(), &address, 5,
                                  &block_size, MEM_COMMIT, get_protection_type( flags ) ))
     {
         WARN("Could not allocate block for %08lx bytes\n", size );




More information about the wine-cvs mailing list