don't use the current process' pid if no process specified.

svn path=/trunk/; revision=14035
This commit is contained in:
Thomas Bluemel
2005-03-13 21:37:54 +00:00
parent a3e183bd64
commit a8ea6a6ab4
+2 -2
View File
@@ -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);