mirror of
https://github.com/winfsp/winfsp.git
synced 2026-06-21 20:12:33 -05:00
sys: FspIopCreateRequestWorkItem
This commit is contained in:
@@ -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