[ros-diffs] [cgutman] 37120: - We already do this in the SEH block. No need to do it twice.

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Nov 1 00:34:55 CET 2008


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.c?rev=37120&r1=37119&r2=37120&view=diff
==============================================================================
--- 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;
 }



More information about the Ros-diffs mailing list