From 654cc8fe0454d9cca389b16577b9ce12b38e3340 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Thu, 13 Jul 2023 22:42:08 +0100 Subject: [PATCH] [*] Win XP -> 8: CpuInfo::pCoreTopology fix --- Source/HWInfo/AuCpuInfo.NT.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/HWInfo/AuCpuInfo.NT.cpp b/Source/HWInfo/AuCpuInfo.NT.cpp index 4e3c0c38..a4ce9ac0 100644 --- a/Source/HWInfo/AuCpuInfo.NT.cpp +++ b/Source/HWInfo/AuCpuInfo.NT.cpp @@ -237,7 +237,8 @@ namespace Aurora::HWInfo gCpuInfo.maskPCores.Add(idx); idx++; } - gCpuInfo.pCoreTopology.push_back(mask); + + gCpuInfo.pCoreTopology.push_back(serverId); } } @@ -290,6 +291,7 @@ namespace Aurora::HWInfo CpuBitId coreId; coreId.lower = mask; gCpuInfo.coreTopology.push_back(coreId); + gCpuInfo.pCoreTopology.push_back(coreId); } } else @@ -314,6 +316,7 @@ namespace Aurora::HWInfo CpuBitId coreId; coreId.lower = maskC; gCpuInfo.coreTopology.push_back(coreId); + gCpuInfo.pCoreTopology.push_back(coreId); } gCpuInfo.uCores = gCpuInfo.uThreads / 2;