Review debug_register_log
This commit is contained in:
parent
ffe90eef49
commit
3af2a49250
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue