[*] 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()) if (AuSwInfo::IsWindows8Point1OrGreater())
{ {
__fastfail('fokd'); __fastfail('fokd');
} }
else else
{ {
ExitProcess(0); TerminateProcess(GetCurrentProcess(), 0);
} }
} }
} }
@ -498,7 +499,14 @@ namespace Aurora::Debug
report.resource.type = Telemetry::ENewBlackBoxResourceType::eLocal; report.resource.type = Telemetry::ENewBlackBoxResourceType::eLocal;
Telemetry::ReportDyingBreath(report); Telemetry::ReportDyingBreath(report);
__fastfail('fokd'); if (AuSwInfo::IsWindows8Point1OrGreater())
{
__fastfail('fokd');
}
else
{
TerminateProcess(GetCurrentProcess(), 0);
}
} }
} }

View File

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