James Eder : kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent.
Module: wine Branch: master Commit: 7e8a5490bd0da9dc0586e8438671380dfc3fc359 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e8a5490bd0da9dc0586e84386... Author: James Eder <jimportal(a)gmail.com> Date: Thu Sep 6 09:23:14 2012 -0600 kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent. --- dlls/kernel32/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c index 996d776..0860362 100644 --- a/dlls/kernel32/cpu.c +++ b/dlls/kernel32/cpu.c @@ -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;
participants (1)
-
Alexandre Julliard