Author: rharabien
Date: Sun Dec 18 00:22:50 2011
New Revision: 54679
URL:
http://svn.reactos.org/svn/reactos?rev=54679&view=rev
Log:
[WIN32K]
- Fail if display name device is given to EnumerateDisplayDevices and index is not set to
0. Fixes hang in Display Settings -> Advanced -> Monitor.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/display.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] Sun Dec 18
00:22:50 2011
@@ -382,6 +382,10 @@
pustrDevice = NULL;
}
+ /* If name is given only iDevNum==0 gives results */
+ if (pustrDevice && iDevNum != 0)
+ return FALSE;
+
/* Acquire global USER lock */
UserEnterShared();