From ce543fbb72f2c4d9c4da4fe71c4cf0cf9c7882dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 17 May 2020 20:13:32 +0200 Subject: [PATCH] [CMD] Fix the stop-batch prompt appearance: do not display it more than once in a row. --- base/shell/cmd/misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/shell/cmd/misc.c b/base/shell/cmd/misc.c index bcefe215002..8d5239949b6 100644 --- a/base/shell/cmd/misc.c +++ b/base/shell/cmd/misc.c @@ -151,10 +151,9 @@ BOOL CheckCtrlBreak(INT mode) LoadString(CMD_ModuleHandle, STRING_COPY_OPTION, options, ARRAYSIZE(options)); - /* we need to be sure the string arrives on the screen! */ + ConOutResPuts(STRING_CANCEL_BATCH_FILE); do { - ConOutResPuts(STRING_CANCEL_BATCH_FILE); c = _totupper(cgetchar()); } while (!(_tcschr(options, c) || c == _T('\3')) || !c);