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/os_mswin.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/os_mswin.c')
| -rw-r--r-- | src/os_mswin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 6ee6379e1..e725e69f0 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -817,7 +817,11 @@ mch_libcall( BOOL fRunTimeLinkSuccess = FALSE; // Get a handle to the DLL module. +# ifdef WIN16 hinstLib = LoadLibrary(libname); +# else + hinstLib = vimLoadLib(libname); +# endif // If the handle is valid, try to get the function address. if (hinstLib != NULL) |
