BOOL WINAPI redirect_RtlUnlockHeap(HANDLE heap) { /* If the main heap, we assume any prior alloc/free was through * DR heap, so we nop this */ if (redirect_heap_call(heap)) { /* nop */ return TRUE; } else { return RtlUnlockHeap(heap); } }
/*********************************************************************** * HeapUnlock (KERNEL32.@) * Releases ownership of the critical section object. * * RETURNS * TRUE: Success * FALSE: Failure */ BOOL WINAPI HeapUnlock( HANDLE heap /* [in] Handle to the heap to unlock */ ) { return RtlUnlockHeap( heap ); }