mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[PORTCLS]
- check if there are enough irp stack locations svn path=/trunk/; revision=68328
This commit is contained in:
@@ -548,7 +548,11 @@ PcForwardIrpSynchronous(
|
||||
// initialize the notification event
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user