ntdll: Fix inverted TlsIndex check.

Fixes: a30a5287f0
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54539
This commit is contained in:
Evan Tang 2023-03-07 17:13:33 -06:00 committed by Alexandre Julliard
parent 1a61a4e1a6
commit 1833887428

View file

@ -1573,7 +1573,7 @@ static NTSTATUS MODULE_InitDLL( WINE_MODREF *wm, UINT reason, LPVOID lpReserved
/* Skip calls for modules loaded with special load flags */
if (wm->ldr.Flags & LDR_DONT_RESOLVE_REFS) return STATUS_SUCCESS;
if (wm->ldr.TlsIndex != -1) call_tls_callbacks( wm->ldr.DllBase, reason );
if (wm->ldr.TlsIndex == -1) call_tls_callbacks( wm->ldr.DllBase, reason );
if (!entry) return STATUS_SUCCESS;
if (TRACE_ON(relay))