How to add stack to IRP

Hi, All !

I’m writing layered filter driver and I have problem. Time to time I got
from some layer above me IRP with Irp->CurrentStackLocation set to 1 and
when I send it to next layer by IoCallDriver, system goes to BSOD (because
IoCallDriver does something as:

Irp->CurrentLocation–;
if (Irp->CurrentLocation == 0)
KeBugCheckEx(…)

Is there any easy way how to add new stack to IRP, or must I allocate new
IRP with proper stacks count ?

S. Kolar (xxxxx@winroute.com)

S. Kolar (xxxxx@winroute.com)


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com