mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
don't use the current process' pid if no process specified.
svn path=/trunk/; revision=14035
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user