summaryrefslogtreecommitdiff
path: root/src/dynlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynlib.c')
-rw-r--r--src/dynlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index 53afdafa2dc..d40aa67f416 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -156,9 +156,8 @@ dynlib_addr (void *addr, const char **fname, const char **symname)
address we pass to it is not an address of a string, but
an address of a function. So we don't care about the
Unicode version. */
- s_pfn_Get_Module_HandleExA =
- (GetModuleHandleExA_Proc) GetProcAddress (hm_kernel32,
- "GetModuleHandleExA");
+ s_pfn_Get_Module_HandleExA = (GetModuleHandleExA_Proc)
+ get_proc_addr (hm_kernel32, "GetModuleHandleExA");
}
if (s_pfn_Get_Module_HandleExA)
{