diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-10-23 14:02:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-10-23 14:02:54 +0200 |
commit | ebbcb824baf770e42ad53c532905a329d762e94e (patch) | |
tree | 103c8a111f4c16c2a619f66127708e24d28d39b9 /src/mbyte.c | |
parent | b8e86705ca09deeee5044af6e3afb4e9999eceb5 (diff) | |
download | vim-git-ebbcb824baf770e42ad53c532905a329d762e94e.tar.gz |
updated for version 7.3.034v7.3.034
Problem: Win32: may be loading .dll from the wrong directory.
Solution: Go to the Vim executable directory when opening a library.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index c7da85af4..9c0b18791 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -4159,11 +4159,11 @@ iconv_enabled(verbose) { if (hIconvDLL != 0 && hMsvcrtDLL != 0) return TRUE; - hIconvDLL = LoadLibrary(DYNAMIC_ICONV_DLL); + hIconvDLL = vimLoadLib(DYNAMIC_ICONV_DLL); if (hIconvDLL == 0) /* sometimes it's called libiconv.dll */ - hIconvDLL = LoadLibrary(DYNAMIC_ICONV_DLL_ALT); + hIconvDLL = vimLoadLib(DYNAMIC_ICONV_DLL_ALT); if (hIconvDLL != 0) - hMsvcrtDLL = LoadLibrary(DYNAMIC_MSVCRT_DLL); + hMsvcrtDLL = vimLoadLib(DYNAMIC_MSVCRT_DLL); if (hIconvDLL == 0 || hMsvcrtDLL == 0) { /* Only give the message when 'verbose' is set, otherwise it might be |