From a4d962279d6d27e1c121b91fe1e7c04101c19b75 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 12:14:11 +0000 Subject: [PATCH] Decompile fn_18256 (CreateUniqueFileName) Batch #15960 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_18256 CreateUniqueFileName: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/File/FileCreation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/File/FileCreation.cpp b/Source/File/FileCreation.cpp index 190200fc1..53452fe0b 100644 --- a/Source/File/FileCreation.cpp +++ b/Source/File/FileCreation.cpp @@ -49,7 +49,7 @@ std::string CreateUniqueFileName(const std::string& filename) { while (_access(result.c_str(), 0) == 0) { result = static_cast(FormatOwnedString("%s%s%s(%d)%s", drive, directory, name, ++index, extension)); } - std::ofstream output(result.c_str(), std::ios::out, _SH_DENYNO); + std::ofstream output(result); output.close(); return result; }