mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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;
|
pustrDevice = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If name is given only iDevNum==0 gives results */
|
||||||
|
if (pustrDevice && iDevNum != 0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* Acquire global USER lock */
|
/* Acquire global USER lock */
|
||||||
UserEnterShared();
|
UserEnterShared();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue