mirror of
https://github.com/reactos/reactos.git
synced 2025-06-30 18:11:23 +00:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
parent
f1b60c66f0
commit
04e0dc4a7a
568 changed files with 115483 additions and 0 deletions
40
sdk/lib/ucrt/heap/debug_heap_hook.cpp
Normal file
40
sdk/lib/ucrt/heap/debug_heap_hook.cpp
Normal file
|
@ -0,0 +1,40 @@
|
|||
//
|
||||
// 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;
|
Loading…
Add table
Add a link
Reference in a new issue