Author: cwittich
Date: Tue Sep 23 02:50:59 2008
New Revision: 36416
URL:
http://svn.reactos.org/svn/reactos?rev=36416&view=rev
Log:
overrun of static array
Fix for Coverity error CID: 532
Modified:
trunk/reactos/dll/win32/kernel32/misc/sysinfo.c
Modified: trunk/reactos/dll/win32/kernel32/misc/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/sy…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/sysinfo.c [iso-8859-1] Tue Sep 23 02:50:59 2008
@@ -176,7 +176,7 @@
BOOL STDCALL
IsProcessorFeaturePresent(DWORD ProcessorFeature)
{
- if (ProcessorFeature > PROCESSOR_FEATURE_MAX)
+ if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
return(FALSE);
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);