From a2373995bc96be1793bc856b7b016b4daccf2415 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 04:51:09 +0000 Subject: [PATCH] Decompile fn_07596 (FormatString) Batch #14949 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_07596 FormatString: logic confirmed by peer review Peer-reviewed-by: Yommy, ntrl, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Text/FormatString.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utility/Text/FormatString.cpp b/Source/Utility/Text/FormatString.cpp index d58e9d8c9..0a35cf13d 100644 --- a/Source/Utility/Text/FormatString.cpp +++ b/Source/Utility/Text/FormatString.cpp @@ -30,7 +30,7 @@ namespace { public: // OFFSET: 0x00733F00 // FUNCTION: fn_07592 - ThreadSafeBuffer() { + __declspec(noinline) ThreadSafeBuffer() { InitializeCriticalSection(&this->m_criticalSection); } @@ -70,7 +70,7 @@ const char* FormatString(const char* format, ...) { va_list args; va_start(args, format); - std::vsnprintf(buffer, 2048, format, args); + _vsnprintf(buffer, 2048, format, args); va_end(args); return s_buffer.GetBuffer();