mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[KERNEL32] Fix buffer size for allocation in GetVolumeInformationW(). This fixes function failing with big enough buffer.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user