From 640751c3b3fd99e9f8a2b12235680b123045c0eb Mon Sep 17 00:00:00 2001 From: Chau Chee Yang Date: Sat, 4 Jul 2020 08:56:25 +0800 Subject: [PATCH] #9: Access Violation using MemoryModule for large application built with runtime packages --- MemoryModule.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);