win32: add BASE_SEARCH_PATH_PERMANENT to SetSearchPathMode

This commit is contained in:
Kacper Michajłow 2023-08-25 18:36:41 +02:00 committed by sfan5
parent 957118864c
commit 4f2a12110f
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ static void microsoft_nonsense(void)
// Always use safe search paths for DLLs and other files, ie. never use the // Always use safe search paths for DLLs and other files, ie. never use the
// current directory // current directory
SetDllDirectoryW(L""); 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_) int main(int argc_, char **argv_)