From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Wed, 28 Feb 2024 06:31:00 +0000 (+0100) Subject: Search wintun.dll in the application directory only X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5d228bb95cc42002d5d877aaa8b02f4a699604ae;p=users%2Fdwmw2%2Fopenconnect.git Search wintun.dll in the application directory only 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> --- diff --git a/wintun.c b/wintun.c index 588815e1..59e69238 100644 --- a/wintun.c +++ b/wintun.c @@ -65,8 +65,7 @@ static int init_wintun(struct openconnect_info *vpninfo) { 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;