mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00

vcruntime contains the code that is linked into ucrtbase (in VS it is also provided as vcruntime140.dll) vcstartup contains the code that is statically linked into executables that link to ucrtbase.dll. In Visual Studio this is part of msvcrt.lib (the import library for msvcrt), similar to our current msvcrtex, and it gets linked when you link to ucrtbase as well. The name is based on the folder name in the library. Both libraries share some code, but each file is only compiled once.
21 lines
426 B
C
21 lines
426 B
C
//
|
|
// __report_gsfailure.c
|
|
//
|
|
// Copyright (c) 2024 Timo Kreuzer
|
|
//
|
|
// Implementation of __report_gsfailure.
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#include <intrin.h>
|
|
#include <ntrtl.h>
|
|
|
|
#if defined(_M_IX86)
|
|
__declspec(noreturn) void __cdecl __report_gsfailure(void)
|
|
#else
|
|
__declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie)
|
|
#endif
|
|
{
|
|
__fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);
|
|
}
|