mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WIN32SS:USER] UserEnumDisplayDevices: correctly report monitor device ids
desk.cpl can now open Monitor properties.
This commit is contained in:
@@ -349,9 +349,12 @@ UserEnumDisplayDevices(
|
||||
|
||||
RtlStringCbCatW(pdispdev->DeviceID, sizeof(pdispdev->DeviceID), L"\\");
|
||||
|
||||
/* FIXME: DevicePropertyDriverKeyName string should be appended */
|
||||
pHardwareId[0] = UNICODE_NULL;
|
||||
RtlStringCbCatW(pdispdev->DeviceID, sizeof(pdispdev->DeviceID), pHardwareId);
|
||||
dwLength = wcslen(pdispdev->DeviceID) + 1;
|
||||
Status = IoGetDeviceProperty(pdo,
|
||||
DevicePropertyDriverKeyName,
|
||||
(ARRAYSIZE(pdispdev->DeviceID) - dwLength) * sizeof(WCHAR),
|
||||
pdispdev->DeviceID + dwLength - 1,
|
||||
&dwLength);
|
||||
}
|
||||
|
||||
TRACE("Hardware ID: %ls\n", pdispdev->DeviceID);
|
||||
|
||||
Reference in New Issue
Block a user