From 8ad8e2ca2f3bea4017d8ebc923182183516c4692 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 22 Dec 2023 13:52:52 -0500 Subject: [PATCH] Match MxDiskStreamController::FUN_100c7d10 --- LEGO1/mxdiskstreamcontroller.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/LEGO1/mxdiskstreamcontroller.cpp b/LEGO1/mxdiskstreamcontroller.cpp index 0c5a5fb2..9bb8fdf6 100644 --- a/LEGO1/mxdiskstreamcontroller.cpp +++ b/LEGO1/mxdiskstreamcontroller.cpp @@ -168,16 +168,17 @@ MxResult MxDiskStreamController::FUN_100c7d10() { MxAutoLocker lock(&this->m_criticalSection); MxDSStreamingAction* action = FUN_100c7db0(); - if (action) { - if (FUN_100c8360(action) == SUCCESS) { - return SUCCESS; - } - else { - VTable0x24(action); - FUN_100c7cb0(action); - } + + if (!action) + return FAILURE; + + if (FUN_100c8360(action) != SUCCESS) { + VTable0x24(action); + FUN_100c7cb0(action); + return FAILURE; } - return FAILURE; + + return SUCCESS; } // STUB: LEGO1 0x100c7db0