From b8cdaf5aea72b00e99fb66ee4505a58d082d0fd3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:26:46 +0000 Subject: [PATCH] Decompile fn_08240 (CThemidaMgr::Create) Batch #12750 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_08240 CThemidaMgr::Create: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Security/ThemidaMgr.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Security/ThemidaMgr.cpp b/Source/Security/ThemidaMgr.cpp index de716ee1..6434297c 100644 --- a/Source/Security/ThemidaMgr.cpp +++ b/Source/Security/ThemidaMgr.cpp @@ -66,11 +66,12 @@ bool CThemidaMgr::Create() { if (g_themidaMgr == nullptr) { g_themidaMgr = new (std::nothrow) CThemidaMgr(); if (g_themidaMgr != nullptr) { - if (g_themidaMgr->m_valid) { - return true; + if (!g_themidaMgr->m_valid) { + delete g_themidaMgr; + g_themidaMgr = nullptr; + return false; } - delete g_themidaMgr; - g_themidaMgr = nullptr; + return true; } } return false;