Author: hpoussin
Date: Tue Dec 30 11:53:05 2014
New Revision: 65904
URL:
http://svn.reactos.org/svn/reactos?rev=65904&view=rev
Log:
[RAMDISK] Send the right DeviceObject in IRP_MN_QUERY_DEVICE_RELATIONS
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] Tue Dec 30 11:53:05
2014
@@ -636,7 +636,7 @@
DriveExtension->GuidString = GuidString;
DriveExtension->DiskGuid = Input->DiskGuid;
DriveExtension->PhysicalDeviceObject = DeviceObject;
- DriveExtension->DeviceObject = DeviceObject;
+ DriveExtension->DeviceObject = RamdiskBusFdo;
DriveExtension->AttachedDevice = RamdiskBusFdo;
DriveExtension->DiskType = Input->DiskType;
DriveExtension->DiskOptions = Input->Options;
@@ -1914,7 +1914,7 @@
//
// Save the object pointer, and move on
//
- *DriveDeviceObject++ = DriveExtension->DeviceObject;
+ *DriveDeviceObject++ = DriveExtension->PhysicalDeviceObject;
}
if (DriveExtension->State < RamdiskStateBusRemoved) DiskCount++;