mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fix mutex unlocking in NpfsWaiterThread and add ASSERT.
svn path=/trunk/; revision=17154
This commit is contained in:
parent
47d6deb829
commit
208dc4dcab
1 changed files with 2 additions and 1 deletions
|
@ -184,6 +184,7 @@ NpfsWaiterThread(PVOID InitContext)
|
|||
ThreadContext->Count++;
|
||||
ThreadContext->DeviceExt->EmptyWaiterCount--;
|
||||
}
|
||||
KeUnlockMutex(&ThreadContext->DeviceExt->PipeListLock);
|
||||
break;
|
||||
default:
|
||||
KEBUGCHECK(0);
|
||||
|
@ -204,7 +205,6 @@ NpfsWaiterThread(PVOID InitContext)
|
|||
Terminate = TRUE;
|
||||
}
|
||||
}
|
||||
KeUnlockMutex(&ThreadContext->DeviceExt->PipeListLock);
|
||||
ExFreePool(ThreadContext);
|
||||
}
|
||||
|
||||
|
@ -400,6 +400,7 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
|
|||
{
|
||||
if (Fcb->PipeState == FILE_PIPE_CONNECTED_STATE)
|
||||
{
|
||||
ASSERT(Fcb->OtherSide != NULL);
|
||||
KeSetEvent(&Fcb->OtherSide->WriteEvent, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
if (Information > 0 &&
|
||||
|
|
Loading…
Reference in a new issue