|
|
|
@@ -107,6 +107,15 @@ static void log_callback_report(void *ptr, int level, const char *fmt, va_list v |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void init_dynload(void) |
|
|
|
{ |
|
|
|
#ifdef _WIN32 |
|
|
|
/* Calling SetDllDirectory with the empty string (but not NULL) removes the |
|
|
|
* current working directory from the DLL search path as a security pre-caution. */ |
|
|
|
SetDllDirectory(""); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
static void (*program_exit)(int ret); |
|
|
|
|
|
|
|
void register_exit(void (*cb)(int ret)) |
|
|
|
|