Now that wintun.dll is installed in the application directory by
both openconnect and openconnect-gui packages, we can get rid of
LOAD_LIBRARY_SEARCH_SYSTEM32.
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
{
if (!vpninfo->wintun) {
vpninfo->wintun = LoadLibraryExW(L"wintun.dll", NULL,
- LOAD_LIBRARY_SEARCH_APPLICATION_DIR |
- LOAD_LIBRARY_SEARCH_SYSTEM32);
+ LOAD_LIBRARY_SEARCH_APPLICATION_DIR);
if (!vpninfo->wintun) {
vpn_progress(vpninfo, PRG_DEBUG, _("Could not load wintun.dll\n"));
return -ENOENT;