We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41cc1bf commit 15c917eCopy full SHA for 15c917e
src/prim/windows/prim.c
@@ -639,7 +639,7 @@ mi_decl_cache_align size_t _mi_win_tls_offset = 0;
639
static void mi_win_tls_init(DWORD reason) {
640
if (reason==DLL_PROCESS_ATTACH || reason==DLL_THREAD_ATTACH) {
641
#if MI_WIN_USE_FIXED_TLS==1 // we must allocate a TLS slot dynamically
642
- if (_mi_win_tls_offset == 0 && reason=DLL_PROCESS_ATTACH) {
+ if (_mi_win_tls_offset == 0 && reason == DLL_PROCESS_ATTACH) {
643
const DWORD tls_slot = TlsAlloc(); // usually returns slot 1
644
if (tls_slot == TLS_OUT_OF_INDEXES) {
645
_mi_error_message(EFAULT, "unable to allocate the a TLS slot (rebuild without MI_WIN_USE_FIXED_TLS?)\n");
0 commit comments