mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00: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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue