/*
* 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"
// 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,
// 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