mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
cmd: Avoid hardcoding the Unicode string literal lengths.
This commit is contained in:
parent
9097fa132e
commit
eb109f46e3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue