]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Search wintun.dll in the application directory only
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Wed, 28 Feb 2024 06:31:00 +0000 (07:31 +0100)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Wed, 28 Feb 2024 06:31:00 +0000 (07:31 +0100)
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>
wintun.c

index 588815e104298296a4cbda026c6fe5dd67907e8e..59e69238483a5477d2d2f5fbff7012319fe3bec8 100644 (file)
--- 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;