Author: cgutman Date: Fri Oct 31 18:34:54 2008 New Revision: 37120
URL: http://svn.reactos.org/svn/reactos?rev=37120&view=rev Log: - We already do this in the SEH block. No need to do it twice.
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/plugplay... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] Fri Oct 31 18:34:54 2008 @@ -529,19 +529,17 @@
DeviceNode = IopGetDeviceNode(DeviceObject);
- DepthData->Depth = DeviceNode->Level; + _SEH_TRY + { + DepthData->Depth = DeviceNode->Level; + } + _SEH_HANDLE + { + Status = _SEH_GetExceptionCode(); + } + _SEH_END;
ObDereferenceObject(DeviceObject); - - _SEH_TRY - { - DepthData->Depth = DeviceNode->Level; - } - _SEH_HANDLE - { - Status = _SEH_GetExceptionCode(); - } - _SEH_END;
return Status; }