mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
overrun of static array
Fix for Coverity error CID: 532 svn path=/trunk/; revision=36416
This commit is contained in:
parent
1285642dcd
commit
112e87a86c
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ GetSystemInfo (
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
IsProcessorFeaturePresent(DWORD ProcessorFeature)
|
IsProcessorFeaturePresent(DWORD ProcessorFeature)
|
||||||
{
|
{
|
||||||
if (ProcessorFeature > PROCESSOR_FEATURE_MAX)
|
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
||||||
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue