Author: ekohl
Date: Sun Feb 19 19:13:41 2017
New Revision: 73851
URL:
http://svn.reactos.org/svn/reactos?rev=73851&view=rev
Log:
[DEVMGR]
Hide "HTREE\ROOT\0" from the device tree.
CORE-12670 #resolve #comment Thanks a lot!
Modified:
trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp
Modified: trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/devmgmt/D…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp [iso-8859-1] Sun Feb 19 19:13:41
2017
@@ -68,7 +68,7 @@
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;