wgl: Fix unintentional assignment on assert.

Spotted by Nanley Chery.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4427
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22706>
(cherry picked from commit 9105e771af)
This commit is contained in:
Jose Fonseca 2023-04-26 10:10:45 +01:00 committed by Eric Engestrom
parent ddd39dbf89
commit 78f568bdc6
2 changed files with 2 additions and 2 deletions

View file

@ -1255,7 +1255,7 @@
"description": "wgl: Fix unintentional assignment on assert.",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -306,7 +306,7 @@ stw_tls_get_data(void)
}
assert(data);
assert(data->dwThreadId = GetCurrentThreadId());
assert(data->dwThreadId == GetCurrentThreadId());
assert(data->next == NULL);
return data;