https://git.reactos.org/?p=reactos.git;a=commitdiff;h=35f303487986752b717112c69227f8075b0174a3

commit 35f303487986752b717112c69227f8075b0174a3
Author:     Alex Henrie <[email protected]>
AuthorDate: Sat Jan 9 15:15:36 2021 -0700
Commit:     GitHub <[email protected]>
CommitDate: Sat Jan 9 23:15:36 2021 +0100

    [NDK] "Reserved" member in SYSTEM_PROCESSOR_INFORMATION is 
"MaximumProcessors" for Windows 8+ (#3421)
    
    Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
---
 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;
 

Reply via email to