https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6dd27bd46799b9f5ad71c…
commit 6dd27bd46799b9f5ad71c06652fd69223ad077b0
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Apr 29 00:50:40 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Apr 29 00:50:40 2018 +0200
[CMD] Use CheckCtrlBreak().
---
base/shell/cmd/dir.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/shell/cmd/dir.c b/base/shell/cmd/dir.c
index 1d2cb357e2..07d14d6f93 100644
--- a/base/shell/cmd/dir.c
+++ b/base/shell/cmd/dir.c
@@ -870,7 +870,7 @@ DirPrintNewList(PDIRFINDINFO ptrFiles[], /* [IN]Files' Info
*/
ULARGE_INTEGER u64FileSize;
PDIRFINDSTREAMNODE ptrCurStream;
- for (i = 0; i < dwCount && !bCtrlBreak; i++)
+ for (i = 0; i < dwCount && !CheckCtrlBreak(BREAK_INPUT); i++)
{
/* Calculate size */
if (ptrFiles[i]->stFindInfo.dwFileAttributes &
FILE_ATTRIBUTE_REPARSE_POINT)
@@ -983,7 +983,7 @@ DirPrintWideList(PDIRFINDINFO ptrFiles[], /* [IN] Files'
Info */
/* Calculate the lines that will be printed */
iLines = (USHORT)((dwCount + iColumns - 1) / iColumns);
- for (i = 0; i < iLines && !bCtrlBreak; i++)
+ for (i = 0; i < iLines && !CheckCtrlBreak(BREAK_INPUT); i++)
{
for (j = 0; j < iColumns; j++)
{
@@ -1033,7 +1033,7 @@ DirPrintOldList(PDIRFINDINFO ptrFiles[], /* [IN] Files'
Info */
int iSizeFormat; /* The format of size field */
ULARGE_INTEGER u64FileSize; /* The file size */
- for (i = 0; i < dwCount && !bCtrlBreak; i++)
+ for (i = 0; i < dwCount && !CheckCtrlBreak(BREAK_INPUT); i++)
{
/* Broke 8.3 format */
if (*ptrFiles[i]->stFindInfo.cAlternateFileName )
@@ -1092,7 +1092,7 @@ DirPrintBareList(PDIRFINDINFO ptrFiles[], /* [IN] Files'
Info */
{
DWORD i;
- for (i = 0; i < dwCount && !bCtrlBreak; i++)
+ for (i = 0; i < dwCount && !CheckCtrlBreak(BREAK_INPUT); i++)
{
if ((_tcscmp(ptrFiles[i]->stFindInfo.cFileName, _T(".")) == 0) ||
(_tcscmp(ptrFiles[i]->stFindInfo.cFileName, _T("..")) == 0))