term: thrd_join() returns thrd_success on success, not 0

Closes #1812
This commit is contained in:
Daniel Eklöf 2024-08-15 17:20:12 +02:00
parent dc5ff7db28
commit 96c30cd410
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1048,7 +1048,7 @@ reload_fonts(struct terminal *term, bool resize_grid)
for (size_t i = 0; i < 4; i++) {
if (tids[i] != 0) {
int ret;
if (thrd_join(tids[i], &ret) != 0)
if (thrd_join(tids[i], &ret) != thrd_success)
success = false;
else
success = success && ret;