This commit is contained in:
Lion Kortlepel 2020-11-17 23:25:59 +01:00
parent e2a45601b3
commit 6a8d097dc5

View File

@ -179,11 +179,11 @@ void ReadCin() {
size_t null_byte_counter = 0; size_t null_byte_counter = 0;
while (true) { while (true) {
int In = _getch(); int In = _getch();
info(std::to_string(In)); //info(std::to_string(In));
if (In == 0) { if (In == 0) {
++null_byte_counter; ++null_byte_counter;
if (null_byte_counter > 0) { if (null_byte_counter > 50) {
info("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled"); info(Sec("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled"));
break; break;
} }
} }