[DEVMGR]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 19 Feb 2017 19:13:41 +0000 (19:13 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 19 Feb 2017 19:13:41 +0000 (19:13 +0000)
Hide "HTREE\ROOT\0" from the device tree.
CORE-12670 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73851

reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp

index 70566a7..bcd471d 100644 (file)
@@ -68,7 +68,7 @@ CDeviceNode::SetupNode()
                                 m_DeviceId,
                                 ulLength + 1,
                                 0);
-        if (cr != CR_SUCCESS)
+        if (cr != CR_SUCCESS || wcscmp(m_DeviceId, L"HTREE\\ROOT\\0") == 0)
         {
             delete[] m_DeviceId;
             m_DeviceId = NULL;