We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5339409 commit 4c80ad7Copy full SHA for 4c80ad7
code/utils/threading.cpp
@@ -68,7 +68,7 @@ namespace threading {
68
SCP_vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> infoBuffer(length / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION));
69
DWORD error = glpi(infoBuffer.data(), &length);
70
71
- if (error != 0)
+ if (error == 0)
72
return get_number_of_physical_cores_fallback();
73
74
size_t num_cores = 0;
0 commit comments