Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

winws2: remove old comment

This commit is contained in:
bol-van
2025-12-17 14:27:51 +03:00
parent 2ecd34cbca
commit 68ac46d1d2

View File

@@ -743,11 +743,11 @@ BOOL JobSandbox()
#define WINDIVERT_DEVICE_NAME "WinDivert"
static bool b_isandbox_set = false;
static bool b_sandbox_set = false;
bool win_sandbox(void)
{
// there's no way to return privs
if (!b_isandbox_set)
if (!b_sandbox_set)
{
if (!RemoveTokenPrivs())
return FALSE;
@@ -759,8 +759,7 @@ bool win_sandbox(void)
return false;
if (!JobSandbox())
return false;
// for LUA code to find where to store files
b_isandbox_set = true;
b_sandbox_set = true;
}
return true;
}