Update thread.c

#4421
This commit is contained in:
DavidXanatos 2024-12-16 09:51:18 +01:00
parent f62245589d
commit 9a086d1483
1 changed files with 2 additions and 2 deletions

View File

@ -1104,9 +1104,9 @@ _FX ACCESS_MASK Thread_CheckObject_CommonEx(
// If the calling process is sandboxed the later common check will do the blocking
//
if (!proc || proc->bHostInject) { // caller is not sandboxed
if (!proc || (proc == PROCESS_TERMINATED) || proc->bHostInject) { // caller is not sandboxed
if (Process_Find(pid, NULL)) { // target is sandboxed - lock free check
if (pid != NULL && Process_Find(pid, NULL)) { // target is sandboxed - lock free check
void* nbuf = 0;
ULONG nlen = 0;