| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/heap/ |
Upload File : |
//
// debug_heap_hook.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Definition of the default debug heap allocation hook. This is in its own
// object so that it may be replaced by a client hook at link time when the
// static CRT is used.
//
#ifndef _DEBUG
#error This file is supported only in debug builds
#endif
#include <corecrt_internal.h>
// A default heap allocation hook that permits all allocations
extern "C" int __cdecl _CrtDefaultAllocHook(
int const allocation_type,
void* const data,
size_t const size,
int const block_use,
long const request,
unsigned char const* const file_name,
int const line_number
)
{
UNREFERENCED_PARAMETER(allocation_type);
UNREFERENCED_PARAMETER(data);
UNREFERENCED_PARAMETER(size);
UNREFERENCED_PARAMETER(block_use);
UNREFERENCED_PARAMETER(request);
UNREFERENCED_PARAMETER(file_name);
UNREFERENCED_PARAMETER(line_number);
return 1; // Allow all heap operations
}
extern "C" _CRT_ALLOC_HOOK _pfnAllocHook = _CrtDefaultAllocHook;