https://git.reactos.org/?p=reactos.git;a=commitdiff;h=09beb7502ed1f42225acd…
commit 09beb7502ed1f42225acd81abef16a816b41738f
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Sat Oct 5 22:44:25 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Oct 6 10:58:30 2019 +0200
[MOUNTMGR] Properly look for device and break when found
Also use same pattern in MountMgrCreatePointWorker().
Addendum to a7f97cc70f62f6805e71b28eba51f52b942d22b4.
---
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 373ade76aa9..2479ff444ee 100644
--- a/drivers/filters/mountmgr/point.c
+++ b/drivers/filters/mountmgr/point.c
@@ -60,7 +60,7 @@ MountMgrCreatePointWorker(IN PDEVICE_EXTENSION DeviceExtension,
{
DeviceInformation = CONTAINING_RECORD(DeviceEntry, DEVICE_INFORMATION,
DeviceListEntry);
- if (RtlCompareUnicodeString(&TargetDeviceName,
&(DeviceInformation->DeviceName), TRUE) == 0)
+ if (RtlEqualUnicodeString(&TargetDeviceName,
&(DeviceInformation->DeviceName), TRUE))
{
break;
}
@@ -462,7 +462,7 @@ QueryPointsFromSymbolicLinkName(IN PDEVICE_EXTENSION DeviceExtension,
{
DeviceInformation = CONTAINING_RECORD(DeviceEntry, DEVICE_INFORMATION,
DeviceListEntry);
- if (RtlEqualUnicodeString(&DeviceName,
&(DeviceInformation->DeviceName), TRUE) == 0)
+ if (RtlEqualUnicodeString(&DeviceName,
&(DeviceInformation->DeviceName), TRUE))
{
break;
}