mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 18:05:46 +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);
|
SymlinkInformation = CONTAINING_RECORD(SymlinksEntry, SYMLINK_INFORMATION, SymbolicLinksListEntry);
|
||||||
|
|
||||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE) == 0)
|
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -500,7 +500,7 @@ QueryPointsFromSymbolicLinkName(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
{
|
{
|
||||||
SymlinkInformation = CONTAINING_RECORD(SymlinksEntry, SYMLINK_INFORMATION, SymbolicLinksListEntry);
|
SymlinkInformation = CONTAINING_RECORD(SymlinksEntry, SYMLINK_INFORMATION, SymbolicLinksListEntry);
|
||||||
|
|
||||||
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE) == 0)
|
if (RtlEqualUnicodeString(SymbolicName, &SymlinkInformation->Name, TRUE))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue