From 105fa0c3f3cef072f92a111b5aaebe00dee0c780 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 00:49:38 +0000 Subject: [PATCH] Decompile fn_07595 (?GetBuffer@ThreadSafeBuffer@?A0xda7967a1@@QAEPADXZ) Batch #14950 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_07595 ?GetBuffer@ThreadSafeBuffer@?A0xda7967a1@@QAEPADXZ: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Text/FormatString.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Utility/Text/FormatString.cpp b/Source/Utility/Text/FormatString.cpp index 41a984f0b..d58e9d8c9 100644 --- a/Source/Utility/Text/FormatString.cpp +++ b/Source/Utility/Text/FormatString.cpp @@ -51,13 +51,14 @@ namespace { char* ThreadSafeBuffer::GetBuffer() { NSyncObject lock(&this->m_criticalSection); const int thread = reinterpret_cast(GetCurrentThread()); + std::map>& buffers = this->m_buffers; - if (this->m_buffers.find(thread) == this->m_buffers.end()) { + if (buffers.find(thread) == buffers.end()) { std::array buffer{}; - this->m_buffers[thread] = buffer; + buffers[thread] = buffer; } - return this->m_buffers[thread].data(); + return buffers[thread].data(); } }