From 607b228df6f1f754bf9bda6cfa21563913b1e7ff Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 25 Aug 2010 20:30:59 +0000 Subject: 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 --- nio-ie5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nio-ie5.c') 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? */ -- cgit v1.2.3