From 3af2a4925064933c7998e552adc31a516e3f3fb9 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 19 Jul 2023 11:39:01 +0300 Subject: [PATCH] Review debug_register_log --- src/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cc b/src/debug.cc index 56e765e..29df660 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -56,7 +56,7 @@ void _debug_register_mono() // 0x4C6D18 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) { fclose(_fd); }