Author: ekohl
Date: Sun Sep 16 22:59:36 2012
New Revision: 57316
URL:
http://svn.reactos.org/svn/reactos?rev=57316&view=rev
Log:
[DEVMGMT]
Do not enumerate the root device.
Fixes CORE-6592.
Modified:
trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c
Modified: trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/devmgmt/enumdevices.c [iso-8859-1] Sun Sep 16
22:59:36 2012
@@ -298,6 +298,16 @@
}
}
}
+ }
+
+ if (DeviceID != NULL &&
+ _tcscmp(*DeviceID, _T("HTREE\\ROOT\\0")) == 0)
+ {
+ HeapFree(GetProcessHeap(),
+ 0,
+ *DeviceID);
+ *DeviceID = NULL;
+ return -1;
}
/* get the device's friendly name */