From fcb2e0fe024178fb3d5a3b9e8fe3dd3b35d7ac06 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 19:55:48 +0000 Subject: [PATCH] Decompile 3 functions in Source/UI/Window/UIDebuffRemoveWnd.cpp, Source/UI/UICaptchaRegisterWnd.cpp, ... Batch #13524 by SapitoSucio: 0 byte-identical, 3 confirmed by peer review. - fn_12940 UIDebuffRemoveWnd::SendMsg: logic confirmed by peer review - fn_09790 UICaptchaRegisterWnd::SendMsg: logic confirmed by peer review - fn_09801 UIMacroBlackListCheckWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/UICaptchaRegisterWnd.cpp | 3 +-- Source/UI/UIMacroBlackListCheckWnd.cpp | 3 +-- Source/UI/Window/UIDebuffRemoveWnd.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/UI/UICaptchaRegisterWnd.cpp b/Source/UI/UICaptchaRegisterWnd.cpp index fe0c45017..7f848a3b2 100644 --- a/Source/UI/UICaptchaRegisterWnd.cpp +++ b/Source/UI/UICaptchaRegisterWnd.cpp @@ -171,8 +171,7 @@ int UICaptchaRegisterWnd::SendMsg( memcpy_s(packet.text, sizeof(packet.text), this->m_editCtrl->Text(), sizeof(packet.text)); packet.size = static_cast(this->m_decompressedSize); - CRagConnection& connection = GetRagConnection(); - connection.Send(g_packetLengths.FixedLength(packet.id), &packet); + GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); g_serverLanguage->ResetInput(); } diff --git a/Source/UI/UIMacroBlackListCheckWnd.cpp b/Source/UI/UIMacroBlackListCheckWnd.cpp index 5e97ff365..fea1e0f1d 100644 --- a/Source/UI/UIMacroBlackListCheckWnd.cpp +++ b/Source/UI/UIMacroBlackListCheckWnd.cpp @@ -194,8 +194,7 @@ int UIMacroBlackListCheckWnd::SendMsg( MacroBlackListCheckPacket packet; packet.id = 0x0BDC; strncpy_s(packet.text, sizeof(packet.text), this->input, _TRUNCATE); - CRagConnection& connection = GetRagConnection(); - connection.Send(g_packetLengths.FixedLength(packet.id), &packet); + GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); this->inputLength = 0; std::memset(this->input, 0, sizeof(this->input)); return 0; diff --git a/Source/UI/Window/UIDebuffRemoveWnd.cpp b/Source/UI/Window/UIDebuffRemoveWnd.cpp index d14b2a96b..510429382 100644 --- a/Source/UI/Window/UIDebuffRemoveWnd.cpp +++ b/Source/UI/Window/UIDebuffRemoveWnd.cpp @@ -46,8 +46,7 @@ int UIDebuffRemoveWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s if (a == 184) { DebuffRemovePacket packet; packet.id = 0xC2A; - CRagConnection& connection = GetRagConnection(); - connection.Send(g_packetLengths.FixedLength(packet.id), &packet); + GetRagConnection().Send(reinterpret_cast(GetRagConnection()).FixedLength(packet.id), &packet); } return 0;