WinAPI: Avoid sign-extension of processor count in GetSystemInfo

This commit is contained in:
Alexandre Julliard authored and Billy Laws committed 2025-07-22 19:28:36 +01:00
1 parent dd5c17291a
commit a71a0ed137
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ DLLEXPORT_FUNC(void, GetSystemInfo, (LPSYSTEM_INFO lpSystemInfo)) {
.lpMinimumApplicationAddress = reinterpret_cast<void*>(Info.LowestUserAddress),
.lpMaximumApplicationAddress = reinterpret_cast<void*>(Info.HighestUserAddress),
.dwActiveProcessorMask = Info.ActiveProcessors,
.dwNumberOfProcessors = static_cast<DWORD>(Info.NumberOfProcessors),
.dwNumberOfProcessors = static_cast<BYTE>(Info.NumberOfProcessors),
.dwProcessorType = 0,
.dwAllocationGranularity = Info.AllocationGranularity,
.wProcessorLevel = 0,