ntdll: Add missing valgrind hook in RtlAllocateHeap.

This commit is contained in:
Dan Kegel 2009-04-15 14:36:34 -07:00 committed by Alexandre Julliard
parent 6a13a1f589
commit 999bb6a0e9
1 changed files with 1 additions and 0 deletions

View File

@ -1372,6 +1372,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, SIZE_T size )
void *ret = allocate_large_block( heap, flags, size ); void *ret = allocate_large_block( heap, flags, size );
if (!(flags & HEAP_NO_SERIALIZE)) RtlLeaveCriticalSection( &heapPtr->critSection ); if (!(flags & HEAP_NO_SERIALIZE)) RtlLeaveCriticalSection( &heapPtr->critSection );
if (!ret && (flags & HEAP_GENERATE_EXCEPTIONS)) RtlRaiseStatus( STATUS_NO_MEMORY ); 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 ); TRACE("(%p,%08x,%08lx): returning %p\n", heap, flags, size, ret );
return ret; return ret;
} }