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:
parent
16a304b471
commit
c3e5a7defc
|
|
@ -33,7 +33,7 @@ unsigned int NzHardwareInfoImpl::GetProcessorCount()
|
||||||
{
|
{
|
||||||
// Plus simple (et plus portable) que de passer par le CPUID
|
// Plus simple (et plus portable) que de passer par le CPUID
|
||||||
SYSTEM_INFO infos;
|
SYSTEM_INFO infos;
|
||||||
GetSystemInfo(&infos);
|
GetNativeSystemInfo(&infos);
|
||||||
|
|
||||||
return infos.dwNumberOfProcessors;
|
return infos.dwNumberOfProcessors;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue