mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
[NPFS]
- Execute the failure case while holding the mutex otherwise we crash svn path=/trunk/; revision=54395
This commit is contained in:
parent
846509e433
commit
2e7cf798a9
1 changed files with 2 additions and 1 deletions
|
@ -463,6 +463,8 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
|
||||||
NULL);
|
NULL);
|
||||||
DPRINT("Finished waiting (%wZ)! Status: %x\n", &Ccb->Fcb->PipeName, Status);
|
DPRINT("Finished waiting (%wZ)! Status: %x\n", &Ccb->Fcb->PipeName, Status);
|
||||||
|
|
||||||
|
ExAcquireFastMutex(&Ccb->DataListLock);
|
||||||
|
|
||||||
if ((Status == STATUS_USER_APC) || (Status == STATUS_KERNEL_APC) || (Status == STATUS_ALERTED))
|
if ((Status == STATUS_USER_APC) || (Status == STATUS_KERNEL_APC) || (Status == STATUS_ALERTED))
|
||||||
{
|
{
|
||||||
Status = STATUS_CANCELLED;
|
Status = STATUS_CANCELLED;
|
||||||
|
@ -472,7 +474,6 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
}
|
}
|
||||||
ExAcquireFastMutex(&Ccb->DataListLock);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue