mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -05:00
Windows: condition setprocessacl() on lack of -DNO_SECURITY.
We also have the special-purpose -DUNPROTECT to disable just the ACL changes, but if you want to compile without any Windows security API support at all (e.g. experimentally building against winelib) then it's easier not to have to specify both defines separately.
This commit is contained in:
@ -395,7 +395,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
* Protect our process
|
||||
*/
|
||||
{
|
||||
#ifndef UNPROTECT
|
||||
#if !defined UNPROTECT && !defined NO_SECURITY
|
||||
char *error = NULL;
|
||||
if (! setprocessacl(error)) {
|
||||
char *message = dupprintf("Could not restrict process ACL: %s",
|
||||
|
Reference in New Issue
Block a user