cmd: Avoid hardcoding the Unicode string literal lengths.

This commit is contained in:
Francois Gouget 2011-12-16 13:06:23 +01:00 committed by Alexandre Julliard
parent 9097fa132e
commit eb109f46e3
1 changed files with 1 additions and 1 deletions

View File

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