From b81ef3b2af387da239fcce50febe5eff759064b4 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Tue, 29 Mar 2022 19:40:26 +0200 Subject: [PATCH] 1.0.16 --- Sandboxie/core/drv/process_low.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Sandboxie/core/drv/process_low.c b/Sandboxie/core/drv/process_low.c index f30a2793..a74ee158 100644 --- a/Sandboxie/core/drv/process_low.c +++ b/Sandboxie/core/drv/process_low.c @@ -262,23 +262,6 @@ _FX NTSTATUS Process_Low_Api_InjectComplete(PROCESS *proc, ULONG64 *parms) if (proc) { - __try { - - PSID pSID = (PSID)(ULONG_PTR)parms[2]; - - if (pSID) { - - ProbeForRead(pSID, SECURITY_MAX_SID_SIZE, sizeof(UCHAR)); - - ULONG sid_length = RtlLengthSid(pSID); - proc->SandboxieLogonSid = Mem_Alloc(proc->pool, sid_length); - memcpy(proc->SandboxieLogonSid, pSID, sid_length); - } - - } __except (EXCEPTION_EXECUTE_HANDLER) { - status = GetExceptionCode(); - } - KeSetEvent(Process_Low_Event, 0, FALSE); status = STATUS_SUCCESS;