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.
This commit is contained in:
parent
805ded3f6b
commit
a58195ddd1
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue