File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -270,14 +270,16 @@ static BOOL
270270ExecuteTLS (PMEMORYMODULE module )
271271{
272272 unsigned char * codeBase = module -> codeBase ;
273+ PIMAGE_TLS_DIRECTORY tls ;
274+ PIMAGE_TLS_CALLBACK * callback ;
273275
274276 PIMAGE_DATA_DIRECTORY directory = GET_HEADER_DICTIONARY (module , IMAGE_DIRECTORY_ENTRY_TLS );
275277 if (directory -> VirtualAddress == 0 ) {
276278 return TRUE;
277279 }
278280
279- PIMAGE_TLS_DIRECTORY tls = (PIMAGE_TLS_DIRECTORY ) (codeBase + directory -> VirtualAddress );
280- PIMAGE_TLS_CALLBACK * callback = (PIMAGE_TLS_CALLBACK * ) tls -> AddressOfCallBacks ;
281+ tls = (PIMAGE_TLS_DIRECTORY ) (codeBase + directory -> VirtualAddress );
282+ callback = (PIMAGE_TLS_CALLBACK * ) tls -> AddressOfCallBacks ;
281283 if (callback ) {
282284 while (* callback ) {
283285 (* callback )((LPVOID ) codeBase , DLL_PROCESS_ATTACH , NULL );
You can’t perform that action at this time.
0 commit comments