mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Stop the footer from printing twice. fixes 1084.
svn path=/trunk/; revision=20050
This commit is contained in:
parent
ff142af4a5
commit
937a0515a6
1 changed files with 24 additions and 37 deletions
|
@ -1138,46 +1138,33 @@ PrintSummary(LPTSTR szPath,
|
|||
/* Print recursive specific results */
|
||||
|
||||
/* Take this code offline to fix /S does not print duoble info */
|
||||
if (lpFlags->bRecursive)
|
||||
{
|
||||
ConvertULargeInteger(u64Bytes, szBuffer, sizeof(szBuffer), lpFlags->bTSeperator);
|
||||
if (lpFlags->bRecursive)
|
||||
{
|
||||
ConvertULargeInteger(u64Bytes, szBuffer, sizeof(szBuffer), lpFlags->bTSeperator);
|
||||
LoadString(CMD_ModuleHandle, STRING_DIR_HELP5, szMsg, RC_STRING_MAX_SIZE);
|
||||
if(lpFlags->bPause)
|
||||
ConOutPrintfPaging(FALSE,szMsg,ulFiles, szBuffer);
|
||||
else
|
||||
ConOutPrintf(szMsg,ulFiles, szBuffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
LoadString(CMD_ModuleHandle, STRING_DIR_HELP5, szMsg, RC_STRING_MAX_SIZE);
|
||||
if(lpFlags->bPause)
|
||||
ConOutPrintfPaging(FALSE,szMsg,ulFiles, szBuffer);
|
||||
else
|
||||
ConOutPrintf(szMsg,ulFiles, szBuffer);
|
||||
/* Print File Summary */
|
||||
/* Condition to print summary is:
|
||||
If we are not in bare format and if we have results! */
|
||||
if (ulFiles > 0)
|
||||
{
|
||||
ConvertULargeInteger(u64Bytes, szBuffer, 20, lpFlags->bTSeperator);
|
||||
LoadString(CMD_ModuleHandle, STRING_DIR_HELP8, szMsg, RC_STRING_MAX_SIZE);
|
||||
if(lpFlags->bPause)
|
||||
ConOutPrintfPaging(FALSE,szMsg,ulFiles, szBuffer);
|
||||
else
|
||||
ConOutPrintf(szMsg,ulFiles, szBuffer);
|
||||
|
||||
if (ulFiles > 0)
|
||||
{
|
||||
ConvertULargeInteger(u64Bytes, szBuffer, 20, lpFlags->bTSeperator);
|
||||
LoadString(CMD_ModuleHandle, STRING_DIR_HELP8, szMsg, RC_STRING_MAX_SIZE);
|
||||
if(lpFlags->bPause)
|
||||
ConOutPrintfPaging(FALSE,szMsg,ulFiles, szBuffer);
|
||||
else
|
||||
ConOutPrintf(szMsg,ulFiles, szBuffer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
/* Print File Summary */
|
||||
/* Condition to print summary is:
|
||||
If we are not in bare format and if we have results! */
|
||||
if (ulFiles > 0)
|
||||
{
|
||||
ConvertULargeInteger(u64Bytes, szBuffer, 20, lpFlags->bTSeperator);
|
||||
LoadString(CMD_ModuleHandle, STRING_DIR_HELP8, szMsg, RC_STRING_MAX_SIZE);
|
||||
if(lpFlags->bPause)
|
||||
ConOutPrintfPaging(FALSE,szMsg,ulFiles, szBuffer);
|
||||
else
|
||||
ConOutPrintf(szMsg,ulFiles, szBuffer);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
/* Print total directories and freespace */
|
||||
szRoot[0] = szPath[0];
|
||||
GetUserDiskFreeSpace(szRoot, &uliFree);
|
||||
|
|
Loading…
Reference in a new issue