ws_load_library() is not used to load packet.dll or wpcap.dll (we use ws_module_open() for this).
Let's not lose time checking the folder content.
Change-Id: Ibd4a71b8b0c5ffc0c4c146eca51ad9f20964515b
Reviewed-on: https://code.wireshark.org/review/15938
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
}
}
- /* At last try the Npcap directory */
- full_path = g_module_build_path(npcap_path, library_name);
- full_path_w = g_utf8_to_utf16(full_path, -1, NULL, NULL, NULL);
-
- if (full_path && full_path_w) {
- dll_h = LoadLibraryW(full_path_w);
- if (dll_h) {
- g_free(full_path);
- g_free(full_path_w);
- return dll_h;
- }
- }
-
return NULL;
}