[NTOSKRNL_VISTA] IoQueueWorkItemEx: Pass new context for the queue (#6276)

Passing parameter-provided context results in missing WorkerRoutine and WorkItem when callback is executed.
This commit is contained in:
Adam Słaboń 2024-01-11 12:29:53 +01:00 committed by GitHub
parent 2f2167abb0
commit 8d1beca119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ IoQueueWorkItemEx(
newContext->WorkItemRoutineEx = WorkerRoutine;
newContext->Context = Context;
IoQueueWorkItem(IoWorkItem, IopWorkItemExCallback, QueueType, Context);
IoQueueWorkItem(IoWorkItem, IopWorkItemExCallback, QueueType, newContext);
}
_IRQL_requires_max_(PASSIVE_LEVEL)