don't use the current process' pid if no process specified. Modified: trunk/reactos/ntoskrnl/ex/handle.c _____
Modified: trunk/reactos/ntoskrnl/ex/handle.c --- trunk/reactos/ntoskrnl/ex/handle.c 2005-03-13 21:34:47 UTC (rev 14034) +++ trunk/reactos/ntoskrnl/ex/handle.c 2005-03-13 21:37:54 UTC (rev 14035) @@ -1,4 +1,4 @@
-/* $Id:$ +/* $Id$ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -112,7 +112,7 @@ 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);