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/gui_w32.c b/src/gui_w32.c
index 3a54e81..d1335a2 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -1260,7 +1260,7 @@
/* try and load the user32.dll library and get the entry points for
* multi-monitor-support. */
- if ((user32_lib = LoadLibrary("User32.dll")) != NULL)
+ if ((user32_lib = vimLoadLib("User32.dll")) != NULL)
{
pMonitorFromWindow = (TMonitorFromWindow)GetProcAddress(user32_lib,
"MonitorFromWindow");
@@ -4188,7 +4188,7 @@
static void
dyn_imm_load(void)
{
- hLibImm = LoadLibrary("imm32.dll");
+ hLibImm = vimLoadLib("imm32.dll");
if (hLibImm == NULL)
return;