mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[DEVMGR]
List devices without names as 'Unknown Device' svn path=/trunk/; revision=69335
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user