RtlAllocateHeap

PVOID __stdcall RtlAllocateHeap(PVOID HeapHandle, ULONG Flags, SIZE_T Size){
  PVOID result; 
  if( !HeapHandle )
    RtlpLogHeapFailure(19i64, 0i64, 0i64, 0i64, 0i64, 0i64);
  if( *((_DWORD *)HeapHandle + 4) == -571548178 )
    LODWORD(result) = RtlpHpAllocWithExceptionProtection(HeapHandle, Size, Flags);
  else
    LODWORD(result) = RtlpAllocateHeapInternal(HeapHandle, Size, Flags);
  return result;
}

Referenced by:

No references.