From bb85fef52fc2532ebe2dc9284ae6271e612e5670 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 19 Feb 2017 19:13:41 +0000 Subject: [PATCH] [DEVMGR] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp b/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp index 70566a75c93..bcd471d4b22 100644 --- a/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp +++ b/reactos/dll/win32/devmgr/devmgmt/DeviceNode.cpp @@ -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; -- 2.17.1