mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Reference the PDO before returning it
svn path=/trunk/; revision=18241
This commit is contained in:
parent
5a455c2aa3
commit
aa1f470e40
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue