https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a7f97cc70f62f6805e71b…
commit a7f97cc70f62f6805e71b28eba51f52b942d22b4
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Oct 5 21:29:38 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Oct 5 21:30:55 2019 +0200
[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.
---
drivers/filters/mountmgr/point.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/filters/mountmgr/point.c b/drivers/filters/mountmgr/point.c
index 4c1d843db50..198e0a5324c 100644
--- a/drivers/filters/mountmgr/point.c
+++ b/drivers/filters/mountmgr/point.c
@@ -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;
}