[DESK]
authorJérôme Gardou <jerome.gardou@reactos.org>
Fri, 7 Feb 2014 23:36:02 +0000 (23:36 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Fri, 7 Feb 2014 23:36:02 +0000 (23:36 +0000)
 - Add Device Description Registry value in Display Class Installer.

svn path=/trunk/; revision=62030

reactos/dll/cpl/desk/classinst.c

index 81ca1dc..9ebcc9f 100644 (file)
@@ -211,6 +211,15 @@ DisplayClassInstaller(
         DPRINT("SetupInstallFromInfSection() failed with error 0x%lx\n", rc);
         goto cleanup;
     }
+    /* Add Device Description string */
+    rc = RegSetValueEx(hDeviceSubKey, _T("Device Description"), 0,
+        REG_SZ, (const BYTE*)DriverInfoData.Description,
+        (_tcslen(DriverInfoData.Description) + 1) * sizeof(TCHAR));
+    if (rc != ERROR_SUCCESS)
+    {
+        DPRINT("RegSetValueEx() failed with error 0x%lx\n", rc);
+        goto cleanup;
+    }
 
     /* FIXME: install OpenGLSoftwareSettings section */