aboutsummaryrefslogtreecommitdiffstats
path: root/nio-ie5.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-08-25 20:30:59 +0000
committerGerald Combs <gerald@wireshark.org>2010-08-25 20:30:59 +0000
commit607b228df6f1f754bf9bda6cfa21563913b1e7ff (patch)
tree6d1cf5c9dae154869fc6a13d181489834d7a190e /nio-ie5.c
parent43af5f6344d47af3ccfa574c1013dbc6a011904c (diff)
Add ws_load_library and ws_module_open, which respectively call
LoadLibrary and g_module_open only for the program directory and system directory on Windows. Use them to replace a bunch of LoadLibrary and g_module_open calls. Use the extension ".dll" for all the DLLs that we load. Add comments about DLL loading in Python. svn path=/trunk/; revision=33924
Diffstat (limited to 'nio-ie5.c')
-rw-r--r--nio-ie5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nio-ie5.c b/nio-ie5.c
index 97cf62ef4e..19267bf9e5 100644
--- a/nio-ie5.c
+++ b/nio-ie5.c
@@ -47,7 +47,7 @@ netio_ie5_connect (char const *url)
if (internet == 0)
{
- HINSTANCE h = LoadLibrary ("wininet.dll");
+ HINSTANCE h = ws_load_library("wininet.dll");
if (!h)
{
/* XXX - how to return an error code? */