cmd: Reset totals after trailer output.
Otherwise, sums are inherited between drives. For instance, dir /s z:\tmp c:\windows\system32\drivers\etc shows an incorrect summary for drive c.
This commit is contained in:
parent
9c1ffb545f
commit
30e0deb70e
1 changed files with 1 additions and 0 deletions
|
@ -937,6 +937,7 @@ void WCMD_directory (WCHAR *args)
|
|||
if (lastDrive != '?') {
|
||||
trailerReqd = FALSE;
|
||||
WCMD_dir_trailer(prevEntry->dirName);
|
||||
byte_total = file_total = dir_total = 0;
|
||||
}
|
||||
|
||||
lastDrive = towupper(thisEntry->dirName[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue