Commit eb109f46 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

cmd: Avoid hardcoding the Unicode string literal lengths.

parent 9097fa13
......@@ -562,7 +562,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
static void WCMD_dir_trailer(WCHAR drive) {
ULARGE_INTEGER avail, total, freebytes;
DWORD status;
WCHAR driveName[4] = {'c',':','\\','\0'};
WCHAR driveName[] = {'c',':','\\','\0'};
driveName[0] = drive;
status = GetDiskFreeSpaceExW(driveName, &avail, &total, &freebytes);
......
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