mirror of
https://github.com/reactos/reactos.git
synced 2024-11-28 05:53:31 +08:00
[KERNEL32] Fix buffer size for allocation in GetVolumeInformationW(). This fixes function failing with big enough buffer.
This commit is contained in:
parent
42cb5353b8
commit
5bfc68cc14
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user