updated for version 7.3.034
Problem: Win32: may be loading .dll from the wrong directory.
Solution: Go to the Vim executable directory when opening a library.
diff --git a/src/mbyte.c b/src/mbyte.c
index c7da85a..9c0b187 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4159,11 +4159,11 @@
{
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