From a8ea6a6ab438c0217d59f497a98fbfa2fb81592e Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 13 Mar 2005 21:37:54 +0000 Subject: [PATCH] don't use the current process' pid if no process specified. svn path=/trunk/; revision=14035 --- reactos/ntoskrnl/ex/handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/handle.c b/reactos/ntoskrnl/ex/handle.c index a0c5c79240e..c987614c5e2 100644 --- a/reactos/ntoskrnl/ex/handle.c +++ b/reactos/ntoskrnl/ex/handle.c @@ -1,4 +1,4 @@ -/* $Id:$ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -112,7 +112,7 @@ ExCreateHandleTable(IN PEPROCESS QuotaProcess OPTIONAL) HandleTable->QuotaProcess = QuotaProcess; HandleTable->FirstFreeTableEntry = -1; /* no entries freed so far */ HandleTable->NextIndexNeedingPool = 0; /* no entries freed so far, so we have to allocate already for the first handle */ - HandleTable->UniqueProcessId = (QuotaProcess ? QuotaProcess->UniqueProcessId : PsGetCurrentProcessId()); + HandleTable->UniqueProcessId = (QuotaProcess ? QuotaProcess->UniqueProcessId : NULL); ExInitializeResource(&HandleTable->HandleTableLock);