mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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 */
|
||||
SymbolicLink.Length = MountPoints->MountPoints[CurrentMntPt].SymbolicLinkNameLength;
|
||||
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 (MOUNTMGR_IS_NT_VOLUME_NAME(&SymbolicLink))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue