Commit 30e0deb7 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

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.
parent 9c1ffb54
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment