mirror of https://github.com/mpv-player/mpv
win32: add BASE_SEARCH_PATH_PERMANENT to SetSearchPathMode
This commit is contained in:
parent
957118864c
commit
4f2a12110f
|
@ -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_)
|
||||
|
|
Loading…
Reference in New Issue