From ddb002437bb814320200a936e18e289141bcb544 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 21 Jun 2005 20:54:31 +0000 Subject: [PATCH] Don't require execute permission on the process heap. --- dlls/ntdll/heap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 9ceaed2634f..c427e2d8465 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -375,7 +375,7 @@ static inline BOOL HEAP_Commit( SUBHEAP *subheap, void *ptr ) size -= subheap->commitSize; ptr = (char *)subheap + subheap->commitSize; if (NtAllocateVirtualMemory( NtCurrentProcess(), &ptr, 0, - &size, MEM_COMMIT, PAGE_EXECUTE_READWRITE)) + &size, MEM_COMMIT, PAGE_READWRITE )) { WARN("Could not commit %08lx bytes at %p for heap %p\n", size, ptr, subheap->heap ); @@ -561,7 +561,7 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags, if (flags & HEAP_SHARED) commitSize = totalSize; /* always commit everything in a shared heap */ if (NtAllocateVirtualMemory( NtCurrentProcess(), &address, 0, - &commitSize, MEM_COMMIT, PAGE_EXECUTE_READWRITE)) + &commitSize, MEM_COMMIT, PAGE_READWRITE )) { WARN("Could not commit %08lx bytes for sub-heap %p\n", commitSize, address ); return FALSE; @@ -650,7 +650,7 @@ static SUBHEAP *HEAP_CreateSubHeap( HEAP *heap, void *base, DWORD flags, { /* allocate the memory block */ if (NtAllocateVirtualMemory( NtCurrentProcess(), &address, 0, &totalSize, - MEM_RESERVE, PAGE_EXECUTE_READWRITE )) + MEM_RESERVE, PAGE_READWRITE )) { WARN("Could not allocate %08lx bytes\n", totalSize ); return NULL;