List devices without names as 'Unknown Device'

svn path=/trunk/; revision=69335
This commit is contained in:
Ged Murphy
2015-09-23 21:24:06 +00:00
parent d77d1a8911
commit 10339625ec
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ set_cpp(WITH_RTTI WITH_RUNTIME)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/dll
${REACTOS_SOURCE_DIR}/lib/atl
includes)
${REACTOS_SOURCE_DIR}/lib/atl
includes)
list(APPEND SOURCE
stdafx.h
@@ -116,6 +116,7 @@ CDeviceNode::SetupNode()
&m_ClassGuid,
&m_ClassImage);
// Get the description for the device
ulLength = DISPLAY_NAME_LEN * sizeof(WCHAR);
cr = CM_Get_DevNode_Registry_PropertyW(m_DevInst,
@@ -136,11 +137,11 @@ CDeviceNode::SetupNode()
}
// Cleanup if something failed
if (cr != CR_SUCCESS)
{
Cleanup();
return false;
CAtlStringW str;
if (str.LoadStringW(g_hThisInstance, IDS_UNKNOWNDEVICE))
StringCchCopyW(m_DisplayName, MAX_PATH, str.GetBuffer());
}
return true;
+2
View File
@@ -24,6 +24,8 @@
#define ERR printf
#define FIXME printf
#define UNIMPLEMENTED
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
DWORD WINAPI pSetupGuidFromString(PCWSTR pString, LPGUID lpGUID);