mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[MOUNTMGR] Avoid an endless loop while sending GUID_IO_VOLUME_NAME_CHANGE notification
This commit is contained in:
parent
6df223ebdf
commit
a77a65ab6d
1 changed files with 3 additions and 2 deletions
|
@ -370,8 +370,9 @@ MountMgrNotifyNameChange(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
if (ValidateVolume)
|
if (ValidateVolume)
|
||||||
{
|
{
|
||||||
/* Then, ensure we can find the device */
|
/* Then, ensure we can find the device */
|
||||||
NextEntry = DeviceExtension->DeviceListHead.Flink;
|
for (NextEntry = DeviceExtension->DeviceListHead.Flink;
|
||||||
while (NextEntry != &(DeviceExtension->DeviceListHead))
|
NextEntry != &DeviceExtension->DeviceListHead;
|
||||||
|
NextEntry = NextEntry->Flink)
|
||||||
{
|
{
|
||||||
DeviceInformation = CONTAINING_RECORD(NextEntry, DEVICE_INFORMATION, DeviceListEntry);
|
DeviceInformation = CONTAINING_RECORD(NextEntry, DEVICE_INFORMATION, DeviceListEntry);
|
||||||
if (RtlCompareUnicodeString(DeviceName, &(DeviceInformation->DeviceName), TRUE) == 0)
|
if (RtlCompareUnicodeString(DeviceName, &(DeviceInformation->DeviceName), TRUE) == 0)
|
||||||
|
|
Loading…
Reference in a new issue