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).
This commit is contained in:
ragnarok-clanker 2026-11-06 19:55:48 +00:00
commit fcb2e0fe02
3 changed files with 3 additions and 6 deletions

View file

@ -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<std::int16_t>(this->m_decompressedSize);
CRagConnection& connection = GetRagConnection();
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
g_serverLanguage->ResetInput();
}

View file

@ -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<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
this->inputLength = 0;
std::memset(this->input, 0, sizeof(this->input));
return 0;

View file

@ -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<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
}
return 0;