diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 20:30:59 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 20:30:59 +0000 |
commit | f81e185fabdbc4e01de2e4af01a408fb6640bea5 (patch) | |
tree | 6d1cf5c9dae154869fc6a13d181489834d7a190e /capture_wpcap_packet.c | |
parent | 728a7ad30739b48e99778b7e93e7135d7284e0a3 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33924 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_wpcap_packet.c')
-rw-r--r-- | capture_wpcap_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/capture_wpcap_packet.c b/capture_wpcap_packet.c index 39060e8639..58e30ff42b 100644 --- a/capture_wpcap_packet.c +++ b/capture_wpcap_packet.c @@ -49,6 +49,7 @@ #include <Ntddndis.h> #include "capture_wpcap_packet.h" +#include <wsutil/file_util.h> /* packet32.h requires sockaddr_storage * whether sockaddr_storage is defined or not depends on the Platform SDK @@ -157,7 +158,7 @@ wpcap_packet_load(void) GModule *wh; /* wpcap handle */ const symbol_table_t *sym; - wh = g_module_open("packet", 0); + wh = ws_module_open("packet.dll", 0); if (!wh) { return; |