Author: weiden
Date: Fri Oct 19 06:51:48 2007
New Revision: 29669
URL:
http://svn.reactos.org/svn/reactos?rev=29669&view=rev
Log:
Extend hack in NtUserEnumDisplayDevices to fail enumerating monitors. Fixes an infinite
loop in deskmon.dll
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntstubs.c Fri Oct 19 06:51:48 2007
@@ -216,6 +216,11 @@
{
/* Only one display device present */
return FALSE;
+ }
+ else if (lpDevice->Length != 0)
+ {
+ /* Can't enumerate monitors :( */
+ return FALSE;
}
if (lpDisplayDevice->cb < sizeof(DISPLAY_DEVICE))
return FALSE;