mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
Daniel Zimmerman <[email protected]>
- Cosmetic fix: initialize pushlocks using a special macro, not by assigning 0 to its value. See issue #3352 for more details. svn path=/trunk/; revision=34000
This commit is contained in:
@@ -405,10 +405,14 @@ ExpAllocateHandleTable(IN PEPROCESS Process OPTIONAL,
|
||||
HandleTable->Flags = 0;
|
||||
|
||||
/* Loop all the handle table locks */
|
||||
for (i = 0; i < 4; i++) HandleTable->HandleTableLock[i].Value = 0;
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
/* Initialize the handle table lock */
|
||||
ExInitializePushLock((PULONG_PTR)&HandleTable->HandleTableLock[i]);
|
||||
}
|
||||
|
||||
/* Initialize the contention event lock and return the lock */
|
||||
HandleTable->HandleContentionEvent.Value = 0;
|
||||
ExInitializePushLock((PULONG_PTR)&HandleTable->HandleContentionEvent);
|
||||
return HandleTable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user