mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 03:12:59 +00:00
[KERNEL32] Fix a bug in GetVolumeNameForRoot
This commit is contained in:
parent
866918c785
commit
eb502bbc10
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ GetVolumeNameForRoot(IN LPCWSTR lpszRootPath,
|
||||||
/* Make a string of it, to easy the checks */
|
/* Make a string of it, to easy the checks */
|
||||||
SymbolicLink.Length = MountPoints->MountPoints[CurrentMntPt].SymbolicLinkNameLength;
|
SymbolicLink.Length = MountPoints->MountPoints[CurrentMntPt].SymbolicLinkNameLength;
|
||||||
SymbolicLink.MaximumLength = SymbolicLink.Length;
|
SymbolicLink.MaximumLength = SymbolicLink.Length;
|
||||||
SymbolicLink.Buffer = (PVOID)((ULONG_PTR)&MountPoints->MountPoints[CurrentMntPt] + MountPoints->MountPoints[CurrentMntPt].SymbolicLinkNameOffset);
|
SymbolicLink.Buffer = (PVOID)((ULONG_PTR)MountPoints + MountPoints->MountPoints[CurrentMntPt].SymbolicLinkNameOffset);
|
||||||
/* If that's a NT volume name (GUID form), keep it! */
|
/* If that's a NT volume name (GUID form), keep it! */
|
||||||
if (MOUNTMGR_IS_NT_VOLUME_NAME(&SymbolicLink))
|
if (MOUNTMGR_IS_NT_VOLUME_NAME(&SymbolicLink))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue