Emulator: Don't trigger on_launch() until the main thread is set.

This commit is contained in:
Parker Lamb 2017-07-01 15:27:06 -05:00
parent fc27b34304
commit aae82430f2
1 changed files with 1 additions and 1 deletions

View File

@ -641,8 +641,8 @@ X_STATUS Emulator::CompleteLaunch(const std::wstring& path,
return X_STATUS_UNSUCCESSFUL;
}
on_launch();
main_thread_ = main_xthread->thread();
on_launch();
return X_STATUS_SUCCESS;
}