Commit 1943fb29 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Don't pass DLL_WINE_PREATTACH to the TLS callbacks.

parent c52b2f12
......@@ -1217,6 +1217,8 @@ static void call_tls_callbacks( HMODULE module, UINT reason )
const PIMAGE_TLS_CALLBACK *callback;
ULONG dirsize;
if (reason == DLL_WINE_PREATTACH) return;
dir = RtlImageDirectoryEntryToData( module, TRUE, IMAGE_DIRECTORY_ENTRY_TLS, &dirsize );
if (!dir || !dir->AddressOfCallBacks) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment