From 9bd6dba5a291db0ef041b96686cdbb82b4839081 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 7 Oct 2023 13:50:05 -0400 Subject: [PATCH] Match MxOmni::Notify --- LEGO1/mxomni.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/LEGO1/mxomni.cpp b/LEGO1/mxomni.cpp index 8eb4fbb3..cde22ffe 100644 --- a/LEGO1/mxomni.cpp +++ b/LEGO1/mxomni.cpp @@ -346,15 +346,11 @@ MxLong MxOmni::Notify(MxParam &p) { MxAutoLocker lock(&this->m_criticalsection); MxLong result; - if (p.GetType() == MXSTREAMER_UNKNOWN) - { - result = HandleNotificationType2(p); - } - else - { - result = 0; - } - return result; + + if (p.GetType() != MXSTREAMER_UNKNOWN) + return 0; + + return HandleNotificationType2(p); } // OFFSET: LEGO1 0x100b0880 STUB