[CMD] Fix the stop-batch prompt appearance: do not display it more than once in a row.

This commit is contained in:
Hermès Bélusca-Maïto 2020-05-17 20:13:32 +02:00
parent d0ced4ffdf
commit ce543fbb72
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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);