projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- We already do this in the SEH block. No need to do it twice.
[reactos.git]
/
reactos
/
ntoskrnl
/
io
/
pnpmgr
/
plugplay.c
diff --git
a/reactos/ntoskrnl/io/pnpmgr/plugplay.c
b/reactos/ntoskrnl/io/pnpmgr/plugplay.c
index
15239ba
..
0d7dca9
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/plugplay.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/plugplay.c
@@
-529,10
+529,6
@@
IopGetDeviceDepth(PPLUGPLAY_CONTROL_DEPTH_DATA DepthData)
DeviceNode = IopGetDeviceNode(DeviceObject);
- DepthData->Depth = DeviceNode->Level;
-
- ObDereferenceObject(DeviceObject);
-
_SEH_TRY
{
DepthData->Depth = DeviceNode->Level;
@@
-543,6
+539,8
@@
IopGetDeviceDepth(PPLUGPLAY_CONTROL_DEPTH_DATA DepthData)
}
_SEH_END;
+ ObDereferenceObject(DeviceObject);
+
return Status;
}