Implemented IsProcessorFeaturePresent().
authorEric Kohl <eric.kohl@reactos.org>
Wed, 12 Feb 2003 03:44:20 +0000 (03:44 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Wed, 12 Feb 2003 03:44:20 +0000 (03:44 +0000)
svn path=/trunk/; revision=4141

reactos/lib/kernel32/misc/stubs.c
reactos/lib/kernel32/misc/sysinfo.c

index 8db1ed2..589deb0 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: stubs.c,v 1.46 2003/02/03 14:20:03 ekohl Exp $
+/* $Id: stubs.c,v 1.47 2003/02/12 03:44:20 ekohl Exp $
  *
  * KERNEL32.DLL stubs (unimplemented functions)
  * Remove from this file, if you implement them.
@@ -7,15 +7,6 @@
 
 //#define _OLE2NLS_IN_BUILD_
 
-BOOL
-STDCALL
-IsProcessorFeaturePresent( DWORD ProcessorFeature )
-{
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return FALSE;
-}
-
-
 BOOL
 STDCALL
 BaseAttachCompleteThunk (VOID)
index eadb09f..32a3efa 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: sysinfo.c,v 1.6 2003/01/15 21:24:35 chorns Exp $
+/* $Id: sysinfo.c,v 1.7 2003/02/12 03:44:20 ekohl Exp $
  *
  * reactos/lib/kernel32/misc/sysinfo.c
  *
@@ -119,5 +119,13 @@ GetSystemInfo (
        }
 }
 
+BOOL STDCALL
+IsProcessorFeaturePresent(DWORD ProcessorFeature)
+{
+  if (ProcessorFeature >= PROCESSOR_FEATURES_MAX)
+    return(FALSE);
+
+  return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);
+}
 
 /* EOF */