[lib/rtl]
authorMichael Martin <michael.martin@reactos.org>
Sun, 28 Feb 2010 00:53:59 +0000 (00:53 +0000)
committerMichael Martin <michael.martin@reactos.org>
Sun, 28 Feb 2010 00:53:59 +0000 (00:53 +0000)
- Replace commented out try block with SEH2. Patch by Samuel Serapion.

svn path=/trunk/; revision=45717

reactos/lib/rtl/actctx.c

index 4508876..f853641 100644 (file)
@@ -551,14 +551,15 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h )
     ACTIVATION_CONTEXT *ret = NULL, *actctx = h;
 
     if (!h || h == INVALID_HANDLE_VALUE) return NULL;
-    //__TRY
+    _SEH2_TRY
     {
         if (actctx && actctx->magic == ACTCTX_MAGIC) ret = actctx;
     }
-    //__EXCEPT_PAGE_FAULT
+    _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
     {
+        DPRINT1("Invalid activation context handle!\n");
     }
-    //__ENDTRY
+    _SEH2_END;
     return ret;
 }