https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ce543fbb72f2c4d9c4da4fe71c4cf0cf9c7882dd

commit ce543fbb72f2c4d9c4da4fe71c4cf0cf9c7882dd
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sun May 17 20:13:32 2020 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Mon May 18 02:21:57 2020 +0200

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

Reply via email to