[DEVMGR]
[reactos.git] / reactos / dll / win32 / devmgr / devmgmt / RootNode.cpp
index ba1fc80..4892343 100644 (file)
@@ -1,13 +1,13 @@
 /*
 * PROJECT:     ReactOS Device Manager
 * LICENSE:     GPL - See COPYING in the top level directory
-* FILE:        dll/win32/devmgr/devmgr/RootNode.cpp
+* FILE:        dll/win32/devmgr/devmgmt/RootNode.cpp
 * PURPOSE:     Root object for
 * COPYRIGHT:   Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
 *
 */
 
-#include "stdafx.h"
+#include "precomp.h"
 #include "devmgmt.h"
 #include "RootNode.h"
 
@@ -29,9 +29,10 @@ CRootNode::SetupNode()
 
     // Load the bitmap we'll be using as the root image
     HBITMAP hRootImage;
-    hRootImage = LoadBitmapW(g_hInstance,
-                                MAKEINTRESOURCEW(IDB_ROOT_IMAGE));
-    if (hRootImage == NULL) return FALSE;
+    hRootImage = LoadBitmapW(g_hThisInstance,
+                             MAKEINTRESOURCEW(IDB_ROOT_IMAGE));
+    if (hRootImage == NULL)
+        return false;
 
     // Add this bitmap to the device image list. This is a bit hacky, but it's safe
     m_ClassImage = ImageList_Add(m_ImageListData->ImageList,
@@ -52,10 +53,7 @@ CRootNode::SetupNode()
 
     // The root name is the computer name 
     DWORD Size = DISPLAY_NAME_LEN;
-    if (GetComputerNameW(m_DisplayName, &Size))
-        _wcslwr_s(m_DisplayName);
+    GetComputerNameW(m_DisplayName, &Size);
 
     return true;
-
-
 }
\ No newline at end of file