Review debug_register_log

This commit is contained in:
Alexander Batalov 2023-07-19 11:39:01 +03:00
parent ffe90eef49
commit 3af2a49250
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void _debug_register_mono()
// 0x4C6D18 // 0x4C6D18
void _debug_register_log(const char* fileName, const char* mode) void _debug_register_log(const char* fileName, const char* mode)
{ {
if ((mode[0] == 'w' && mode[1] == 'a') && mode[1] == 't') { if ((mode[0] == 'w' || mode[0] == 'a') && mode[1] == 't') {
if (_fd != NULL) { if (_fd != NULL) {
fclose(_fd); fclose(_fd);
} }