mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 21:54:22 +08:00
overrun of static array
Fix for Coverity error CID: 532 svn path=/trunk/; revision=36416
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user