mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WIN32SS:USER] Add 'DISPLAY' as an alternate name for global display
CORE-20303
This commit is contained in:
@@ -380,6 +380,7 @@ NtUserEnumDisplayDevices(
|
||||
PDISPLAY_DEVICEW pDisplayDevice,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
static const UNICODE_STRING ustrDisplay = RTL_CONSTANT_STRING(L"DISPLAY");
|
||||
UNICODE_STRING ustrDevice;
|
||||
WCHAR awcDevice[CCHDEVICENAME];
|
||||
DISPLAY_DEVICEW dispdev;
|
||||
@@ -411,7 +412,7 @@ NtUserEnumDisplayDevices(
|
||||
}
|
||||
_SEH2_END
|
||||
|
||||
if (ustrDevice.Length > 0)
|
||||
if (ustrDevice.Length > 0 && !RtlEqualUnicodeString(&ustrDevice, &ustrDisplay, TRUE))
|
||||
pustrDevice = &ustrDevice;
|
||||
else
|
||||
pustrDevice = NULL;
|
||||
|
||||
Reference in New Issue
Block a user