mirror of https://github.com/WerWolv/ImHex.git
fix: Logs not being written to disk on Windows
This commit is contained in:
parent
969a37877a
commit
7ea7c531e2
|
@ -214,7 +214,7 @@ namespace hex {
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
if (::GetLastError() == ERROR_INVALID_HANDLE) {
|
if (::GetLastError() == ERROR_INVALID_HANDLE) {
|
||||||
result = AllocConsole();
|
result = AllocConsole() == TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -238,8 +238,6 @@ namespace hex {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (::GetLastError() == ERROR_INVALID_HANDLE) {
|
|
||||||
// The parent process is not a console process
|
|
||||||
} else {
|
} else {
|
||||||
log::redirectToFile();
|
log::redirectToFile();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue