Author: dchapyshev
Date: Mon Mar 2 17:08:46 2009
New Revision: 39843
URL:
http://svn.reactos.org/svn/reactos?rev=39843&view=rev
Log:
- Add check of returned value for EnumDisplaySettings
Modified:
trunk/reactos/base/applications/taskmgr/applpage.c
Modified: trunk/reactos/base/applications/taskmgr/applpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] Mon Mar 2 17:08:46
2009
@@ -66,7 +66,9 @@
pDevMode.dmSize = sizeof(DEVMODE);
pDevMode.dmDriverExtra = 0;
- EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &pDevMode);
+
+ if (!EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &pDevMode))
+ return ILC_COLOR;
switch (pDevMode.dmBitsPerPel)
{