kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent.
This commit is contained in:
parent
b97a07bc07
commit
7e8a5490bd
|
@ -212,7 +212,7 @@ VOID WINAPI GetNativeSystemInfo(
|
||||||
BOOL WINAPI IsProcessorFeaturePresent (
|
BOOL WINAPI IsProcessorFeaturePresent (
|
||||||
DWORD feature /* [in] Feature number, (PF_ constants from "winnt.h") */)
|
DWORD feature /* [in] Feature number, (PF_ constants from "winnt.h") */)
|
||||||
{
|
{
|
||||||
if (feature < 64)
|
if (feature < PROCESSOR_FEATURE_MAX)
|
||||||
return SHARED_DATA->ProcessorFeatures[feature];
|
return SHARED_DATA->ProcessorFeatures[feature];
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue