Two very minor win32 calls to lock down dll/exe search paths from cwd
This commit is contained in:
parent
43aa0bfdc3
commit
17539a564e
|
@ -49,6 +49,13 @@ bool KIPLATFORM::APP::Init()
|
||||||
// ensure the WER crash report dialog always appears
|
// ensure the WER crash report dialog always appears
|
||||||
WerSetFlags( WER_FAULT_REPORTING_ALWAYS_SHOW_UI );
|
WerSetFlags( WER_FAULT_REPORTING_ALWAYS_SHOW_UI );
|
||||||
|
|
||||||
|
// remove CWD from the dll search paths
|
||||||
|
// just the smallest of security tweaks as we do load DLLs on demand
|
||||||
|
SetDllDirectory( wxT( "" ) );
|
||||||
|
|
||||||
|
// Moves the CWD to the end of the search list for spawning processes
|
||||||
|
SetSearchPathMode( BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE | BASE_SEARCH_PATH_PERMANENT );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue