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