1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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:
Akihiro Sagawa 2023-10-23 22:09:18 +09:00 committed by Alexandre Julliard
parent 9c1ffb545f
commit 30e0deb70e

View file

@ -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]);