From 1963d80d2ca0c256bee791116fd86944bf430922 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 30 Jun 2024 20:29:14 +1000 Subject: [PATCH] RegTest: Fix crash on startup --- src/duckstation-regtest/regtest_host.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/duckstation-regtest/regtest_host.cpp b/src/duckstation-regtest/regtest_host.cpp index 579e55644..bda15898f 100644 --- a/src/duckstation-regtest/regtest_host.cpp +++ b/src/duckstation-regtest/regtest_host.cpp @@ -719,7 +719,7 @@ int main(int argc, char* argv[]) { Error startup_error; if (!System::Internal::PerformEarlyHardwareChecks(&startup_error) || - !System::Internal::CPUThreadInitialize(&startup_error)) + !System::Internal::ProcessStartup(&startup_error) || !System::Internal::CPUThreadInitialize(&startup_error)) { ERROR_LOG("CPUThreadInitialize() failed: {}", startup_error.GetDescription()); return EXIT_FAILURE; @@ -756,5 +756,6 @@ int main(int argc, char* argv[]) cleanup: System::Internal::CPUThreadShutdown(); + System::Internal::ProcessShutdown(); return result; }