From 9532ddd779c14e33142964aa74fb6f80433ec32e Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 29 Dec 2014 22:55:21 +0000 Subject: [PATCH] [RAMDISK] Simplify & use IoCopyCurrentIrpStackLocationToNext() svn path=/trunk/; revision=65901 --- reactos/drivers/storage/class/ramdisk/ramdisk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/storage/class/ramdisk/ramdisk.c b/reactos/drivers/storage/class/ramdisk/ramdisk.c index 30850289fc9..143a6f6f600 100644 --- a/reactos/drivers/storage/class/ramdisk/ramdisk.c +++ b/reactos/drivers/storage/class/ramdisk/ramdisk.c @@ -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