/* These are called by LocalFree, passing kernel32!BaseHeap == peb->ProcessHeap */ BOOL WINAPI redirect_RtlLockHeap(HANDLE heap) { /* If the main heap, we assume any subsequent alloc/free will be through * DR heap, so we nop this */ if (redirect_heap_call(heap)) { /* nop */ return TRUE; } else { return RtlLockHeap(heap); } }
/*********************************************************************** * HeapLock (KERNEL32.@) * Attempts to acquire the critical section object for a specified heap. * * RETURNS * TRUE: Success * FALSE: Failure */ BOOL WINAPI HeapLock( HANDLE heap /* [in] Handle of heap to lock for exclusive access */ ) { return RtlLockHeap( heap ); }