wgl: Fix unintentional assignment on assert.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 26 Apr 2023 09:10:45 +0000 (10:10 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Apr 2023 09:58:39 +0000 (09:58 +0000)
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>

src/gallium/frontends/wgl/stw_tls.c

index 0e8c177..2a5d3ce 100644 (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;