From: Serge Gautherie Date: Sat, 5 Oct 2019 20:44:25 +0000 (+0200) Subject: [MOUNTMGR] Properly look for device and break when found X-Git-Tag: 0.4.14-RC~1542 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=09beb7502ed1f42225acd81abef16a816b41738f;ds=inline [MOUNTMGR] Properly look for device and break when found Also use same pattern in MountMgrCreatePointWorker(). Addendum to a7f97cc70f62f6805e71b28eba51f52b942d22b4. --- 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; }