From 1c89f8a855d7c24441b520ded7e3bba7c7a1bf58 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 29 Apr 2023 17:25:33 +0300 Subject: [PATCH] LV2/Timer: Fix ENOTCONN check of start timer --- rpcs3/Emu/Cell/lv2/sys_timer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_timer.cpp b/rpcs3/Emu/Cell/lv2/sys_timer.cpp index 4f42b33d88..68d29ea82c 100644 --- a/rpcs3/Emu/Cell/lv2/sys_timer.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_timer.cpp @@ -267,7 +267,8 @@ error_code _sys_timer_start(ppu_thread& ppu, u32 timer_id, u64 base_time, u64 pe { std::lock_guard lock(timer.mutex); - if (!lv2_obj::check(timer.port)) + // LV2 Disassembly: Simple nullptr check (assignment test, do not use lv2_obj::check here) + if (!timer.port) { return CELL_ENOTCONN; }