mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
Fix mutex unlocking in NpfsWaiterThread and add ASSERT.
svn path=/trunk/; revision=17154
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user