kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent.

This commit is contained in:
James Eder 2012-09-06 09:23:14 -06:00 committed by Alexandre Julliard
parent b97a07bc07
commit 7e8a5490bd

View File

@ -212,7 +212,7 @@ VOID WINAPI GetNativeSystemInfo(
BOOL WINAPI IsProcessorFeaturePresent (
DWORD feature /* [in] Feature number, (PF_ constants from "winnt.h") */)
{
if (feature < 64)
if (feature < PROCESSOR_FEATURE_MAX)
return SHARED_DATA->ProcessorFeatures[feature];
else
return FALSE;