Author: ros-arm-bringup
Date: Sat Jul 19 15:57:31 2008
New Revision: 34592
URL: http://svn.reactos.org/svn/reactos?rev=34592&view=rev
Log:
- Usually a good idea to fill out the device relation count instead of leaving it uninitailized to 2 billion.
- Fixes all the ramdisk problems -- need to implement RamdiskWorkerThread now.
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] Sat Jul 19 15:57:31 2008
@@ -695,6 +695,11 @@
DeviceRelations->Objects,
Count * sizeof(PDEVICE_OBJECT));
}
+
+ //
+ // Save the count
+ //
+ OurDeviceRelations->Count = FinalCount;
//
// Now loop our drives again
Author: ros-arm-bringup
Date: Sat Jul 19 15:52:52 2008
New Revision: 34590
URL: http://svn.reactos.org/svn/reactos?rev=34590&view=rev
Log:
- It doesn't make sense to dereference an I/O Work Item... did you perhaps mean to dereference the device object?
- Fixes a crash when IoInvalidateRelations is called, as well as a reference leak.
Modified:
trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Sat Jul 19 15:52:52 2008
@@ -260,7 +260,7 @@
Data->DeviceObject,
Data->Type);
- ObDereferenceObject(Data->WorkItem);
+ ObDereferenceObject(Data->DeviceObject);
IoFreeWorkItem(Data->WorkItem);
ExFreePool(Data);
}