From 75dfda51ffa091b3df9fc217abec18048035f757 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 18:15:00 +0000 Subject: [PATCH] Decompile 2 functions in Source/Render/DX7/DeviceCapabilitiesDX7.cpp, Source/Render/DeviceContext/DCSurface.cpp, ... Batch #18664 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_07644 NThread::~NThread: logic confirmed by peer review (already on main) - fn_45509 NThread::Stop: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Threading/NThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utility/Threading/NThread.cpp b/Source/Utility/Threading/NThread.cpp index 364782e62..8d115a6f3 100644 --- a/Source/Utility/Threading/NThread.cpp +++ b/Source/Utility/Threading/NThread.cpp @@ -73,6 +73,8 @@ bool NThread::Start() { // FUNCTION: fn_45509 void NThread::Stop() { switch (this->m_state) { + case 0: + return; case 2: if (ResumeThread(this->m_handle) != static_cast(-1)) { this->m_state = 1; @@ -89,8 +91,6 @@ void NThread::Stop() { } this->m_state = 0; break; - default: - break; } }