overrun of static array

Fix for Coverity error CID: 532

svn path=/trunk/; revision=36416
This commit is contained in:
Christoph von Wittich 2008-09-23 07:50:59 +00:00
parent 1285642dcd
commit 112e87a86c

View file

@ -176,7 +176,7 @@ GetSystemInfo (
BOOL STDCALL
IsProcessorFeaturePresent(DWORD ProcessorFeature)
{
if (ProcessorFeature > PROCESSOR_FEATURE_MAX)
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
return(FALSE);
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);