mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
22 lines
426 B
C
22 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);
|
||
|
}
|