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_)