Index: reactos/dll/win32/devmgr/devmgmt/ClassNode.cpp =================================================================== --- reactos/dll/win32/devmgr/devmgmt/ClassNode.cpp (revision 73213) +++ reactos/dll/win32/devmgr/devmgmt/ClassNode.cpp (working copy) @@ -42,8 +42,7 @@ 0); if (hKey != INVALID_HANDLE_VALUE) { - Size = DISPLAY_NAME_LEN; - Type = REG_SZ; + Size = DISPLAY_NAME_LEN * sizeof(WCHAR); // Lookup the class description (win7+) Success = RegQueryValueExW(hKey, @@ -63,6 +62,8 @@ } else if (Success == ERROR_FILE_NOT_FOUND) { + Size = DISPLAY_NAME_LEN * sizeof(WCHAR); + // WinXP stores the description in the default value Success = RegQueryValueExW(hKey, NULL,