diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-25 18:36:41 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-09-01 16:58:56 +0200 |
commit | 4f2a12110f029963d50e8ece415ba3668885b692 (patch) | |
tree | d9a3a20f93db49fce211eb677e21ce8b5c0dccd8 /osdep/main-fn-win.c | |
parent | 957118864c053775d59889440107e2fa60dab2c4 (diff) | |
download | mpv-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.c | 3 |
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_) |