From 4f2a12110f029963d50e8ece415ba3668885b692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 25 Aug 2023 18:36:41 +0200 Subject: [PATCH] win32: add BASE_SEARCH_PATH_PERMANENT to SetSearchPathMode --- osdep/main-fn-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osdep/main-fn-win.c b/osdep/main-fn-win.c index d191b45c5e..b0fa62f09e 100644 --- a/osdep/main-fn-win.c +++ b/osdep/main-fn-win.c @@ -33,7 +33,8 @@ static void microsoft_nonsense(void) // Always use safe search paths for DLLs and other files, ie. never use the // current directory SetDllDirectoryW(L""); - SetSearchPathMode(BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE); + SetSearchPathMode(BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE | + BASE_SEARCH_PATH_PERMANENT); } int main(int argc_, char **argv_)