mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
Reference the PDO before returning it
svn path=/trunk/; revision=18241
This commit is contained in:
@@ -231,7 +231,10 @@ IopTraverseDeviceNode(PDEVICE_NODE Node, PUNICODE_STRING DeviceInstance)
|
||||
|
||||
if (RtlEqualUnicodeString(&Node->InstancePath,
|
||||
DeviceInstance, TRUE))
|
||||
{
|
||||
ObReferenceObject(Node->PhysicalDeviceObject);
|
||||
return Node->PhysicalDeviceObject;
|
||||
}
|
||||
|
||||
/* Traversal of all children nodes */
|
||||
for (ChildNode = Node->Child;
|
||||
|
||||
Reference in New Issue
Block a user