summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-10-23 14:02:54 +0200
committerBram Moolenaar <Bram@vim.org>2010-10-23 14:02:54 +0200
commitebbcb824baf770e42ad53c532905a329d762e94e (patch)
tree103c8a111f4c16c2a619f66127708e24d28d39b9 /src/os_mswin.c
parentb8e86705ca09deeee5044af6e3afb4e9999eceb5 (diff)
downloadvim-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.c4
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)