forked from aniani/vim
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user