mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
[CMD] Fix the stop-batch prompt appearance: do not display it more than once in a row.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user