- Fixed KeReleaseDispatcherDatabaseLockAtDpcLevel/KeReleaseDispatcherDatabaseLock.

svn path=/trunk/; revision=6069
This commit is contained in:
Hartmut Birr 2003-09-14 09:12:19 +00:00
parent f9cf46a778
commit 230ad74f48

View file

@ -68,9 +68,8 @@ VOID KeAcquireDispatcherDatabaseLock(BOOLEAN Wait)
VOID KeReleaseDispatcherDatabaseLockAtDpcLevel(BOOLEAN Wait)
{
DPRINT("KeReleaseDispatcherDatabaseLockAtDpcLevel(Wait %x)\n", Wait);
assert(Wait == WaitSet);
if (!Wait)
DPRINT("KeReleaseDispatcherDatabaseLockAtDpcLevel(Wait %x) WaitSet=%x\n", Wait, WaitSet);
if (Wait == WaitSet)
{
Owner = NULL;
KeReleaseSpinLockFromDpcLevel(&DispatcherDatabaseLock);
@ -79,9 +78,8 @@ VOID KeReleaseDispatcherDatabaseLockAtDpcLevel(BOOLEAN Wait)
VOID KeReleaseDispatcherDatabaseLock(BOOLEAN Wait)
{
DPRINT("KeReleaseDispatcherDatabaseLock(Wait %x)\n",Wait);
assert(Wait==WaitSet);
if (!Wait)
DPRINT("KeReleaseDispatcherDatabaseLock(Wait %x) WaitSet=%x\n",Wait,WaitSet);
if (Wait == WaitSet)
{
Owner = NULL;
KeReleaseSpinLock(&DispatcherDatabaseLock, oldlvl);