cmd.exe: Only write 'bytes free' message if a file was displayed during dir.

This commit is contained in:
Jason Edmeades 2007-03-18 22:13:48 +00:00 committed by Alexandre Julliard
parent bf626f960b
commit 0739ad2246
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ void WCMD_directory (void) {
lstrcpyn (drive, path, 4); lstrcpyn (drive, path, 4);
GetDiskFreeSpaceEx (drive, &avail, &total, &free); GetDiskFreeSpaceEx (drive, &avail, &total, &free);
if (!bare) { if (errorlevel==0 && !bare) {
if (recurse) { if (recurse) {
WCMD_output ("\n\n Total files listed:\n%8d files%25s bytes\n", WCMD_output ("\n\n Total files listed:\n%8d files%25s bytes\n",
file_total, WCMD_filesize64 (byte_total)); file_total, WCMD_filesize64 (byte_total));