mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Surround process protection with an #ifndef UNPROTECT
(cherry picked from commit 8b65fef55c
)
This commit is contained in:
parent
db910f712c
commit
7346e9bc4b
@ -395,15 +395,14 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
* Protect our process
|
||||
*/
|
||||
{
|
||||
#ifndef UNPROTECT
|
||||
char *error = NULL;
|
||||
|
||||
if (! setprocessacl(error)) {
|
||||
/* FIXME: prepare to stuff this into event log somehow */
|
||||
MessageBox(NULL, "Process protection",
|
||||
error, MB_OK | MB_ICONEXCLAMATION);
|
||||
logevent(NULL, "Could not restrict process ACL: %s",
|
||||
error);
|
||||
}
|
||||
sfree(error);
|
||||
|
||||
#endif
|
||||
}
|
||||
/*
|
||||
* Process the command line.
|
||||
|
Loading…
Reference in New Issue
Block a user