mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[WIN32K]
- Fail if display name device is given to EnumerateDisplayDevices and index is not set to 0. Fixes hang in Display Settings -> Advanced -> Monitor. svn path=/trunk/; revision=54679
This commit is contained in:
parent
8da34d541e
commit
1b0eb4aad4
1 changed files with 4 additions and 0 deletions
|
@ -382,6 +382,10 @@ NtUserEnumDisplayDevices(
|
|||
pustrDevice = NULL;
|
||||
}
|
||||
|
||||
/* If name is given only iDevNum==0 gives results */
|
||||
if (pustrDevice && iDevNum != 0)
|
||||
return FALSE;
|
||||
|
||||
/* Acquire global USER lock */
|
||||
UserEnterShared();
|
||||
|
||||
|
|
Loading…
Reference in a new issue