- 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.


svn path=/trunk/; revision=34590
This commit is contained in:
ReactOS Portable Systems Group 2008-07-19 20:52:52 +00:00
parent fd5bd1942d
commit 910b3242e7

View file

@ -260,7 +260,7 @@ IopAsynchronousInvalidateDeviceRelations(
Data->DeviceObject,
Data->Type);
ObDereferenceObject(Data->WorkItem);
ObDereferenceObject(Data->DeviceObject);
IoFreeWorkItem(Data->WorkItem);
ExFreePool(Data);
}