Skip to content

Commit 4c80ad7

Browse files
authored
Fix Thread Count Detection on Windows (#6834)
1 parent 5339409 commit 4c80ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/utils/threading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace threading {
6868
SCP_vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> infoBuffer(length / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION));
6969
DWORD error = glpi(infoBuffer.data(), &length);
7070

71-
if (error != 0)
71+
if (error == 0)
7272
return get_number_of_physical_cores_fallback();
7373

7474
size_t num_cores = 0;

0 commit comments

Comments
 (0)