Use PROCESSOR_FEATURE_MAX instead of PROCESSOR_FEATURES_MAX. The latter is not official and a useless ducpliate. Use LARGE_INTEGER instead of TIME in ex/sysinfo.c

svn path=/trunk/; revision=12678
This commit is contained in:
Alex Ionescu 2005-01-01 04:05:42 +00:00
parent d5882cfd80
commit 849dcb1be9
4 changed files with 5 additions and 7 deletions

View file

@ -13,8 +13,6 @@
#define PF_PAE_ENABLED 9
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
#define PROCESSOR_FEATURES_MAX 64
typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
{
StandardDesign,

View file

@ -1,4 +1,4 @@
/* $Id: sysinfo.c,v 1.14 2004/09/21 22:08:18 weiden Exp $
/* $Id$
*
* reactos/lib/kernel32/misc/sysinfo.c
*
@ -157,7 +157,7 @@ GetSystemInfo (
BOOL STDCALL
IsProcessorFeaturePresent(DWORD ProcessorFeature)
{
if (ProcessorFeature >= PROCESSOR_FEATURES_MAX)
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
return(FALSE);
return((BOOL)SharedUserData->ProcessorFeatures[ProcessorFeature]);

View file

@ -55,7 +55,7 @@ ExInit3 (VOID)
BOOLEAN STDCALL
ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
{
if (ProcessorFeature >= PROCESSOR_FEATURES_MAX)
if (ProcessorFeature >= PROCESSOR_FEATURE_MAX)
return(FALSE);
return(SharedUserData->ProcessorFeatures[ProcessorFeature]);

View file

@ -1,4 +1,4 @@
/* $Id: sysinfo.c,v 1.62 2004/12/16 22:36:09 gvg Exp $
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -723,7 +723,7 @@ QSI_DEF(SystemProcessorPerformanceInformation)
= (PSYSTEM_PROCESSORTIME_INFO) Buffer;
ULONG i;
TIME CurrentTime;
LARGE_INTEGER CurrentTime;
PKPCR Pcr;
*ReqSize = KeNumberProcessors * sizeof (SYSTEM_PROCESSORTIME_INFO);