James Eder : kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent.

Alexandre Julliard julliard at winehq.org
Fri Sep 7 13:26:20 CDT 2012


Module: wine
Branch: master
Commit: 7e8a5490bd0da9dc0586e8438671380dfc3fc359
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7e8a5490bd0da9dc0586e8438671380dfc3fc359

Author: James Eder <jimportal at 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;




More information about the wine-cvs mailing list