mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 17:35:07 +00:00
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:
parent
0c04721b80
commit
f5ae8773cf
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue