| Server IP : 121.121.20.254 / Your IP : 216.73.216.41 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Windows Kits/10/Source/10.0.26100.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;