fixed last commit

This commit is contained in:
oy 2019-01-05 17:39:29 +01:00
parent 1a883a4b70
commit 7fd1b06295

View file

@ -249,11 +249,12 @@ static DWORD old_console_mode;
void dbg_console_init() void dbg_console_init()
{ {
HANDLE handle; HANDLE handle;
DWORD console_mode;
handle = GetStdHandle(STD_INPUT_HANDLE); handle = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(handle, &old_console_mode); GetConsoleMode(handle, &old_console_mode);
old_console_mode &= ~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS; console_mode = old_console_mode & (~ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS);
SetConsoleMode(handle, old_console_mode); SetConsoleMode(handle, console_mode);
} }
void dbg_console_cleanup() void dbg_console_cleanup()
{ {