mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[PORTCLS]
- check if there are enough irp stack locations svn path=/trunk/; revision=68328
This commit is contained in:
parent
edae2b9bfb
commit
a5e2945149
1 changed files with 5 additions and 1 deletions
|
@ -548,7 +548,11 @@ PcForwardIrpSynchronous(
|
||||||
// initialize the notification event
|
// initialize the notification event
|
||||||
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
||||||
|
|
||||||
IoCopyCurrentIrpStackLocationToNext(Irp);
|
// are there enough irp stack locations
|
||||||
|
if (Irp->CurrentLocation < Irp->StackCount + 1)
|
||||||
|
{
|
||||||
|
IoCopyCurrentIrpStackLocationToNext(Irp);
|
||||||
|
}
|
||||||
|
|
||||||
IoSetCompletionRoutine(Irp, CompletionRoutine, (PVOID)&Event, TRUE, TRUE, TRUE);
|
IoSetCompletionRoutine(Irp, CompletionRoutine, (PVOID)&Event, TRUE, TRUE, TRUE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue