mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: FspIopCreateRequestWorkItem
This commit is contained in:
16
src/sys/wq.c
16
src/sys/wq.c
@ -51,6 +51,22 @@ NTSTATUS FspWqCreateAndPostIrpWorkItem(PIRP Irp,
|
||||
RequestWorkItem->WorkRoutine = WorkRoutine;
|
||||
ExInitializeWorkItem(&RequestWorkItem->WorkQueueItem, FspWqWorkRoutine, Irp);
|
||||
}
|
||||
else
|
||||
{
|
||||
RequestWorkItem = FspIopRequestWorkItem(Request);
|
||||
if (0 == RequestWorkItem)
|
||||
{
|
||||
NTSTATUS Result;
|
||||
|
||||
Result = FspIopCreateRequestWorkItem(Request);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
|
||||
RequestWorkItem = FspIopRequestWorkItem(Request);
|
||||
RequestWorkItem->WorkRoutine = WorkRoutine;
|
||||
ExInitializeWorkItem(&RequestWorkItem->WorkQueueItem, FspWqWorkRoutine, Irp);
|
||||
}
|
||||
}
|
||||
|
||||
if (!CreateAndPost)
|
||||
return STATUS_SUCCESS;
|
||||
|
Reference in New Issue
Block a user