summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-win.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-08-25 18:36:41 +0200
committersfan5 <sfan5@live.de>2023-09-01 16:58:56 +0200
commit4f2a12110f029963d50e8ece415ba3668885b692 (patch)
treed9a3a20f93db49fce211eb677e21ce8b5c0dccd8 /osdep/main-fn-win.c
parent957118864c053775d59889440107e2fa60dab2c4 (diff)
downloadmpv-4f2a12110f029963d50e8ece415ba3668885b692.tar.bz2
mpv-4f2a12110f029963d50e8ece415ba3668885b692.tar.xz
win32: add BASE_SEARCH_PATH_PERMANENT to SetSearchPathMode
Diffstat (limited to 'osdep/main-fn-win.c')
-rw-r--r--osdep/main-fn-win.c3
1 files changed, 2 insertions, 1 deletions
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_)