From: Cameron Gutman Date: Fri, 31 Oct 2008 23:34:54 +0000 (+0000) Subject: - We already do this in the SEH block. No need to do it twice. X-Git-Tag: backups/the-real-msvc@60644~2^2~62 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4ed7116ff9da31ff77a1bc2c40beaaf1248a1197;hp=f3272693750dc751060c9845e5e5ed69b85dec85 - We already do this in the SEH block. No need to do it twice. svn path=/trunk/; revision=37120 --- diff --git a/reactos/ntoskrnl/io/pnpmgr/plugplay.c b/reactos/ntoskrnl/io/pnpmgr/plugplay.c index 15239bab02c..0d7dca9075f 100644 --- 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; }