From a71a0ed13719785dd38322db5324c8ccaa80cf5d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 21 Jul 2025 18:11:17 +0100 Subject: [PATCH] WinAPI: Avoid sign-extension of processor count in GetSystemInfo --- Source/Windows/Common/WinAPI/Misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Windows/Common/WinAPI/Misc.cpp b/Source/Windows/Common/WinAPI/Misc.cpp index 970af12dc..b6ed9ed16 100644 --- a/Source/Windows/Common/WinAPI/Misc.cpp +++ b/Source/Windows/Common/WinAPI/Misc.cpp @@ -69,7 +69,7 @@ DLLEXPORT_FUNC(void, GetSystemInfo, (LPSYSTEM_INFO lpSystemInfo)) { .lpMinimumApplicationAddress = reinterpret_cast(Info.LowestUserAddress), .lpMaximumApplicationAddress = reinterpret_cast(Info.HighestUserAddress), .dwActiveProcessorMask = Info.ActiveProcessors, - .dwNumberOfProcessors = static_cast(Info.NumberOfProcessors), + .dwNumberOfProcessors = static_cast(Info.NumberOfProcessors), .dwProcessorType = 0, .dwAllocationGranularity = Info.AllocationGranularity, .wProcessorLevel = 0,