mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:33:07 +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
29
sdk/lib/ucrt/misc/debug_fill_threshold.cpp
Normal file
29
sdk/lib/ucrt/misc/debug_fill_threshold.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// debug_fill_threshold.cpp
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Functions to control the debug fill threshold used by the secure string
|
||||
// functions. A threshold of 0 disables filling; a threshold of SIZE_MAX
|
||||
// means to always fill to the maximum.
|
||||
//
|
||||
#include <corecrt_internal.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
static size_t __acrt_debug_fill_threshold = SIZE_MAX;
|
||||
|
||||
|
||||
|
||||
extern "C" size_t __cdecl _CrtSetDebugFillThreshold(size_t const new_threshold)
|
||||
{
|
||||
size_t const old_threshold{__acrt_debug_fill_threshold};
|
||||
__acrt_debug_fill_threshold = new_threshold;
|
||||
return old_threshold;
|
||||
}
|
||||
|
||||
extern "C" size_t __cdecl _CrtGetDebugFillThreshold()
|
||||
{
|
||||
return __acrt_debug_fill_threshold;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue