Commit ab53187c authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

ntoskrnl.exe: Use IoGetNextIrpStackLocation.

parent e54d029f
......@@ -435,7 +435,7 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG IoControlCode,
instance->irp = irp;
list_add_tail( &Irps, &instance->entry );
irpsp = irp->Tail.Overlay.s.u2.CurrentStackLocation - 1;
irpsp = IoGetNextIrpStackLocation( irp );
irpsp->MajorFunction = InternalDeviceIoControl ?
IRP_MJ_INTERNAL_DEVICE_CONTROL : IRP_MJ_DEVICE_CONTROL;
irpsp->Parameters.DeviceIoControl.IoControlCode = IoControlCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment