1
0

AnvilStats: Fixed Win64 compilation.

This commit is contained in:
Mattes D 2014-08-27 11:52:54 +03:00
parent d783753cb5
commit ccaa51f913

View File

@ -272,7 +272,7 @@ extern const char * GetEntityTypeString(eEntityType a_EntityType)
int GetNumCores(void) int GetNumCores(void)
{ {
// Get number of cores by querying the system process affinity mask (Windows-specific) // Get number of cores by querying the system process affinity mask (Windows-specific)
DWORD Affinity, ProcAffinity; DWORD_PTR Affinity, ProcAffinity;
GetProcessAffinityMask(GetCurrentProcess(), &ProcAffinity, &Affinity); GetProcessAffinityMask(GetCurrentProcess(), &ProcAffinity, &Affinity);
int NumCores = 0; int NumCores = 0;
while (Affinity > 0) while (Affinity > 0)