Core/HardwareInfo: Improve accuracy under Windows
(I don't think this will change a thing but let's follow the spec anyway) Former-commit-id: 882225b4caf46cc0a34643d6a55d5f818f7f36b5
This commit is contained in:
@@ -33,7 +33,7 @@ unsigned int NzHardwareInfoImpl::GetProcessorCount()
|
||||
{
|
||||
// Plus simple (et plus portable) que de passer par le CPUID
|
||||
SYSTEM_INFO infos;
|
||||
GetSystemInfo(&infos);
|
||||
GetNativeSystemInfo(&infos);
|
||||
|
||||
return infos.dwNumberOfProcessors;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user