- 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:
Aleksey Bragin
2008-06-17 18:21:41 +00:00
parent 9127f8cb64
commit 85dbdefb9f
+6 -2
View File
@@ -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;
}