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
1 changed files with 1 additions and 1 deletions

View File

@ -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;