mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: introduce private NTSTATUS codes FSP_STATUS_POST_IOQ* and ensure that Irp is not touched after STATUS_PENDING
This commit is contained in:
@ -384,10 +384,17 @@ BOOLEAN FspIoqPostIrpEx(FSP_IOQ *Ioq, PIRP Irp, BOOLEAN BestEffort, NTSTATUS *PR
|
||||
QueryInterruptTimeInSec() + Ioq->IrpTimeout;
|
||||
Result = IoCsqInsertIrpEx(&Ioq->PendingIoCsq, Irp, 0, (PVOID)BestEffort);
|
||||
if (NT_SUCCESS(Result))
|
||||
{
|
||||
if (0 != PResult)
|
||||
*PResult = STATUS_PENDING;
|
||||
return TRUE;
|
||||
if (0 != PResult)
|
||||
*PResult = Result;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (0 != PResult)
|
||||
*PResult = Result;
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
PIRP FspIoqNextPendingIrp(FSP_IOQ *Ioq, PIRP BoundaryIrp, PLARGE_INTEGER Timeout)
|
||||
|
Reference in New Issue
Block a user