diff --git a/MemoryModule.pas b/MemoryModule.pas index df2986c..efc0d01 100644 --- a/MemoryModule.pas +++ b/MemoryModule.pas @@ -437,7 +437,7 @@ function ExecuteTLS(Module: PMemoryModule): Boolean; callback := Pointer(tls.AddressOfCallBacks); if callback <> nil then begin - callback := FixPtr(callback); +// callback := FixPtr(callback); while callback^ <> nil do begin PIMAGE_TLS_CALLBACK(FixPtr(callback^))(CodeBase, DLL_PROCESS_ATTACH, nil);