Explorar o código

* Use threadvar for the module name buffer to be thread-safe.

git-svn-id: trunk@29422 -
yury %!s(int64=10) %!d(string=hai) anos
pai
achega
ed770f4485
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/android/dlandroid.inc

+ 1 - 1
rtl/android/dlandroid.inc

@@ -2,7 +2,7 @@
 // On Android the dladdr() function does not return full path to modules.
 // Emulate dladdr() by reading the /proc/self/maps to get full path to modules.
 
-var
+threadvar
   _ModuleName: ansistring;
 
 function dladdr(Lib: pointer; info: Pdl_info): Longint; cdecl;