Compare commits

..

2 Commits

Author SHA1 Message Date
0de7beb351 Merge branch 'patch-5' of https://github.com/WPMGPRoSToTeMa/amxmodx 2022-07-11 13:34:36 +00:00
Artem Golubikhin
c6eb62ccbc Make module loading more safe 2017-07-22 14:36:13 +03:00

View File

@ -79,7 +79,7 @@ extern AMX_NATIVE_INFO g_GameConfigNatives[];
#define DLPROC(m, func) GetProcAddress(m, func) #define DLPROC(m, func) GetProcAddress(m, func)
#define DLFREE(m) FreeLibrary(m) #define DLFREE(m) FreeLibrary(m)
#else #else
#define DLLOAD(path) (DLHANDLE)dlopen(path, RTLD_NOW) #define DLLOAD(path) (DLHANDLE)dlopen(path, RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND)
#define DLPROC(m, func) dlsym(m, func) #define DLPROC(m, func) dlsym(m, func)
#define DLFREE(m) dlclose(m) #define DLFREE(m) dlclose(m)
#endif #endif