[KERNEL32] Fix buffer size for allocation in GetVolumeInformationW(). This fixes function failing with big enough buffer.

This commit is contained in:
Pierre Schweitzer 2017-10-15 10:43:49 +02:00
parent 42cb5353b8
commit 5bfc68cc14

View File

@ -253,6 +253,10 @@ GetVolumeInformationW(IN LPCWSTR lpRootPathName,
RootPathName = lpRootPathName;
}
/* Convert length to bytes */
nVolumeNameSize *= sizeof(WCHAR);
nFileSystemNameSize *= sizeof(WCHAR);
/* Convert to NT name */
if (!RtlDosPathNameToNtPathName_U(RootPathName, &NtPathName, NULL, NULL))
{