mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[RAMDISK]
Simplify & use IoCopyCurrentIrpStackLocationToNext() svn path=/trunk/; revision=65901
This commit is contained in:
parent
9980552e04
commit
9532ddd779
1 changed files with 2 additions and 3 deletions
|
@ -2297,7 +2297,7 @@ NTAPI
|
|||
RamdiskPnp(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION IoStackLocation, NextIoStack;
|
||||
PIO_STACK_LOCATION IoStackLocation;
|
||||
PRAMDISK_BUS_EXTENSION DeviceExtension;
|
||||
NTSTATUS Status;
|
||||
UCHAR Minor;
|
||||
|
@ -2429,8 +2429,7 @@ RamdiskPnp(IN PDEVICE_OBJECT DeviceObject,
|
|||
//
|
||||
// Prepare next stack to pass it down
|
||||
//
|
||||
NextIoStack = IoGetNextIrpStackLocation(Irp);
|
||||
RtlCopyMemory(NextIoStack, IoStackLocation, sizeof(IO_STACK_LOCATION));
|
||||
IoCopyCurrentIrpStackLocationToNext(Irp);
|
||||
|
||||
//
|
||||
// Initialize our notification event & our completion routine
|
||||
|
|
Loading…
Reference in a new issue