Author: pschweitzer
Date: Mon Dec 29 22:55:21 2014
New Revision: 65901
URL:
http://svn.reactos.org/svn/reactos?rev=65901&view=rev
Log:
[RAMDISK]
Simplify & use IoCopyCurrentIrpStackLocationToNext()
Modified:
trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Mon Dec 29 22:55:21
2014
@@ -2297,7 +2297,7 @@
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 @@
//
// 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