Dan Kegel : ntdll: Add missing valgrind hook in RtlAllocateHeap.
Alexandre Julliard
julliard at winehq.org
Thu Apr 16 14:34:48 CDT 2009
Module: wine
Branch: master
Commit: 999bb6a0e9bdc741c65974a3c53af6f72a752a9a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=999bb6a0e9bdc741c65974a3c53af6f72a752a9a
Author: Dan Kegel <dank at kegel.com>
Date: Wed Apr 15 14:36:34 2009 -0700
ntdll: Add missing valgrind hook in RtlAllocateHeap.
---
dlls/ntdll/heap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c
index 674aee7..255a688 100644
--- a/dlls/ntdll/heap.c
+++ b/dlls/ntdll/heap.c
@@ -1372,6 +1372,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, SIZE_T size )
void *ret = allocate_large_block( heap, flags, size );
if (!(flags & HEAP_NO_SERIALIZE)) RtlLeaveCriticalSection( &heapPtr->critSection );
if (!ret && (flags & HEAP_GENERATE_EXCEPTIONS)) RtlRaiseStatus( STATUS_NO_MEMORY );
+ notify_alloc( ret, size, flags & HEAP_ZERO_MEMORY );
TRACE("(%p,%08x,%08lx): returning %p\n", heap, flags, size, ret );
return ret;
}
More information about the wine-cvs
mailing list