Extend hack in NtUserEnumDisplayDevices to fail enumerating monitors. Fixes an infinite loop in deskmon.dll

svn path=/trunk/; revision=29669
This commit is contained in:
Thomas Bluemel 2007-10-19 02:51:48 +00:00
parent 0c04721b80
commit f5ae8773cf

View file

@ -217,6 +217,11 @@ NtUserEnumDisplayDevices (
/* 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;