Explorar o código

hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.

bunnei %!s(int64=4) %!d(string=hai) anos
pai
achega
f55fc850a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/hle_ipc.cpp

+ 1 - 1
src/core/hle/kernel/hle_ipc.cpp

@@ -51,7 +51,7 @@ bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& co
             LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
             return false;
         }
-        return DomainHandler(object_id - 1).lock() != nullptr;
+        return !DomainHandler(object_id - 1).expired();
     } else {
         return session_handler != nullptr;
     }