[*] Amended Win7 fast fail path

This commit is contained in:
Reece Wilson 2023-07-03 19:40:38 +01:00
parent 677a845614
commit 9fcee7041e
2 changed files with 18 additions and 3 deletions

View File

@ -420,13 +420,14 @@ namespace Aurora::Debug
{
}
if (AuSwInfo::IsWindows8Point1OrGreater())
{
__fastfail('fokd');
}
else
{
ExitProcess(0);
TerminateProcess(GetCurrentProcess(), 0);
}
}
}
@ -498,8 +499,15 @@ namespace Aurora::Debug
report.resource.type = Telemetry::ENewBlackBoxResourceType::eLocal;
Telemetry::ReportDyingBreath(report);
if (AuSwInfo::IsWindows8Point1OrGreater())
{
__fastfail('fokd');
}
else
{
TerminateProcess(GetCurrentProcess(), 0);
}
}
}
static void CacheInternalBuildSymbols()

View File

@ -116,7 +116,14 @@ namespace Aurora::Debug
}
#if defined(AURORA_IS_MODERNNT_DERIVED)
__fastfail('FCKD');
if (AuSwInfo::IsWindows8Point1OrGreater())
{
__fastfail('fokd');
}
else
{
TerminateProcess(GetCurrentProcess(), 0);
}
#else
#if defined(AURORA_COMPILER_GCC) || defined(AURORA_COMPILER_CLANG)
__builtin_trap();