mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
remove early ub on load
This commit is contained in:
parent
75186f6346
commit
54ff48c993
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ void console::setup() {
|
|||
|
||||
// count == 0 => not a console and not a file, assume it's closed
|
||||
// wine does something weird with /dev/null? not sure tbh but it's definitely up to no good
|
||||
if ((count == 0 || path.ends_with("\\dev\\null")) && Mod::get()->getSettingValue<bool>("show-platform-console")) {
|
||||
if ((count == 0 || path.ends_with("\\dev\\null"))) {
|
||||
s_outHandle = nullptr;
|
||||
CloseHandle(GetStdHandle(STD_OUTPUT_HANDLE));
|
||||
CloseHandle(GetStdHandle(STD_INPUT_HANDLE));
|
||||
|
|
Loading…
Reference in a new issue