ntoskrnl.exe: Use IoGetNextIrpStackLocation.

This commit is contained in:
Damjan Jovanovic 2010-04-10 17:17:57 +02:00 committed by Alexandre Julliard
parent e54d029f88
commit ab53187cf7
1 changed files with 1 additions and 1 deletions

View File

@ -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;