Module: Mesa Branch: main Commit: 9105e771afece456835adf911735be0e8d27dc87 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9105e771afece456835adf911735be0e8d27dc87
Author: Jose Fonseca <[email protected]> Date: Wed Apr 26 10:10:45 2023 +0100 wgl: Fix unintentional assignment on assert. Spotted by Nanley Chery. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4427 Reviewed-by: Jesse Natalie <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Neha Bhende <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22706> --- src/gallium/frontends/wgl/stw_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/wgl/stw_tls.c b/src/gallium/frontends/wgl/stw_tls.c index 0e8c177aa66..2a5d3cea477 100644 --- a/src/gallium/frontends/wgl/stw_tls.c +++ b/src/gallium/frontends/wgl/stw_tls.c @@ -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;
