From 35f303487986752b717112c69227f8075b0174a3 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sat, 9 Jan 2021 15:15:36 -0700 Subject: [PATCH] [NDK] "Reserved" member in SYSTEM_PROCESSOR_INFORMATION is "MaximumProcessors" for Windows 8+ (#3421) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Hermès BÉLUSCA - MAÏTO --- ntoskrnl/ex/sysinfo.c | 4 ++++ sdk/include/ndk/extypes.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c index aa999b2a023..64cbffc5ba1 100644 --- a/ntoskrnl/ex/sysinfo.c +++ b/ntoskrnl/ex/sysinfo.c @@ -657,7 +657,11 @@ QSI_DEF(SystemProcessorInformation) Spi->ProcessorArchitecture = KeProcessorArchitecture; Spi->ProcessorLevel = KeProcessorLevel; Spi->ProcessorRevision = KeProcessorRevision; +#if (NTDDI_VERSION < NTDDI_WIN8) Spi->Reserved = 0; +#else + Spi->MaximumProcessors = 0; +#endif Spi->ProcessorFeatureBits = KeFeatureBits; DPRINT("Arch %u Level %u Rev 0x%x\n", Spi->ProcessorArchitecture, diff --git a/sdk/include/ndk/extypes.h b/sdk/include/ndk/extypes.h index 7751241d114..360a257dafe 100644 --- a/sdk/include/ndk/extypes.h +++ b/sdk/include/ndk/extypes.h @@ -756,7 +756,11 @@ typedef struct _SYSTEM_PROCESSOR_INFORMATION USHORT ProcessorArchitecture; USHORT ProcessorLevel; USHORT ProcessorRevision; +#if (NTDDI_VERSION < NTDDI_WIN8) USHORT Reserved; +#else + USHORT MaximumProcessors; +#endif ULONG ProcessorFeatureBits; } SYSTEM_PROCESSOR_INFORMATION, *PSYSTEM_PROCESSOR_INFORMATION; -- 2.17.1