From 2b3ae8b6388e59e03d178ac00a9650b02d2eb323 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 20 Jul 2022 16:44:10 +0300 Subject: [PATCH] Revert another change --- rpcs3/Emu/Memory/vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 18267a59ea..66de860bbf 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -887,9 +887,9 @@ namespace vm // Notify rsx to invalidate range // Note: This must be done *before* memory gets unmapped while holding the vm lock, otherwise // the RSX might try to call VirtualProtect on memory that is already unmapped - if (auto& rsxthr = g_fxo->get(); !Emu.IsPaused() && g_fxo->is_init()) + if (auto rsxthr = g_fxo->try_get()) { - rsxthr.on_notify_memory_unmapped(addr, size); + rsxthr->on_notify_memory_unmapped(addr, size); } // Deregister PPU related data