Windows: Avoid segfault if memory except on boot.

This commit is contained in:
Unknown W. Brackets committed 2021-03-28 19:44:17 -07:00
1 parent 1d413c2470
commit f8306891c5
3 files changed
+7 -4

No files matched your search

+2 -1
View File
@@ -122,7 +122,8 @@ void UpdateUIState(GlobalUIState newState) {
// Never leave the EXIT state.
if (globalUIState != newState && globalUIState != UISTATE_EXIT) {
globalUIState = newState;
host->UpdateDisassembly();
if (host)
host->UpdateDisassembly();
const char *state = nullptr;
switch (globalUIState) {
case UISTATE_EXIT: state = "exit"; break;