From a58195ddd17343ec953bb56047af19664604c2ed Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 12:04:32 +0000 Subject: [PATCH] Decompile fn_02601 (CFile::Write) Batch #13228 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_02601 CFile::Write: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/File/File.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/File/File.cpp b/Source/File/File.cpp index 05a70b27..a849c995 100644 --- a/Source/File/File.cpp +++ b/Source/File/File.cpp @@ -68,8 +68,12 @@ bool CFile::Open(const char* path, int mode, bool resourcePath, bool option) { // OFFSET: 0x0057C340 // FUNCTION: fn_02601 bool CFile::Write(const void* data, std::uint32_t bytes) { - DWORD written; - return this->m_handle != INVALID_HANDLE_VALUE && WriteFile(this->m_handle, data, bytes, &written, nullptr); + if (this->m_handle != INVALID_HANDLE_VALUE) { + DWORD written; + return WriteFile(this->m_handle, data, bytes, &written, nullptr) != FALSE; + } + + return false; } // OFFSET: 0x0057C260