Skip to content

Commit

Permalink
RegTest: Fix crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jun 30, 2024
1 parent e169189 commit 1963d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/duckstation-regtest/regtest_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -756,5 +756,6 @@ int main(int argc, char* argv[])

cleanup:
System::Internal::CPUThreadShutdown();
System::Internal::ProcessShutdown();
return result;
}

0 comments on commit 1963d80

Please sign in to comment.