mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[MOUNTMGR] Properly look for symlink and break when found
This fixes a bug where MountMgr was returning first found entry on query even when not matching the requested device.
This commit is contained in:
parent
d4ede03e19
commit
a7f97cc70f
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ QueryPointsFromSymbolicLinkName(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
{
|
||||
SymlinkInformation = CONTAINING_RECORD(SymlinksEntry, SYMLINK_INFORMATION, SymbolicLinksListEntry);
|
||||
|
||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE) == 0)
|
||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -500,7 +500,7 @@ QueryPointsFromSymbolicLinkName(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
{
|
||||
SymlinkInformation = CONTAINING_RECORD(SymlinksEntry, SYMLINK_INFORMATION, SymbolicLinksListEntry);
|
||||
|
||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE) == 0)
|
||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue