get_library_path(): uninitialized hCurrentModuleInstance + make it static.
This commit is contained in:
parent
deb9c6e111
commit
ad6da89892
|
@ -13,7 +13,7 @@
|
||||||
#include "gettext-config.h"
|
#include "gettext-config.h"
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
HINSTANCE hCurrentModuleInstance;
|
static HINSTANCE hCurrentModuleInstance;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@LC_GLOB_VARS@
|
@LC_GLOB_VARS@
|
||||||
|
@ -42,8 +42,8 @@ void __attribute__ ((constructor)) load_library (void)
|
||||||
|
|
||||||
gchar *so_path = g_new (gchar, FILENAME_MAX);
|
gchar *so_path = g_new (gchar, FILENAME_MAX);
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
get_library_path (so_path, NULL);
|
|
||||||
hCurrentModuleInstance = hInstance;
|
hCurrentModuleInstance = hInstance;
|
||||||
|
get_library_path (so_path, NULL);
|
||||||
@LC_WIN32_CODE@
|
@LC_WIN32_CODE@
|
||||||
#elif defined(linux) || defined(UNIX) || defined(__unix__)
|
#elif defined(linux) || defined(UNIX) || defined(__unix__)
|
||||||
get_library_path (so_path, load_library);
|
get_library_path (so_path, load_library);
|
||||||
|
|
Loading…
Reference in New Issue