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);
}