kernel32: Use PROCESSOR_FEATURE_MAX in IsProcessorFeaturePresent.

James Eder jimportal at gmail.com
Thu Sep 6 10:23:14 CDT 2012


---
 dlls/kernel32/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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




More information about the wine-patches mailing list