Author: mjmartin
Date: Sun Feb 28 01:53:59 2010
New Revision: 45717
URL:
http://svn.reactos.org/svn/reactos?rev=45717&view=rev
Log:
[lib/rtl]
- Replace commented out try block with SEH2. Patch by Samuel Serapion.
Modified:
trunk/reactos/lib/rtl/actctx.c
Modified: trunk/reactos/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=45717…
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Sun Feb 28 01:53:59 2010
@@ -551,14 +551,15 @@
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
- {
- }
- //__ENDTRY
+ _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
+ {
+ DPRINT1("Invalid activation context handle!\n");
+ }
+ _SEH2_END;
return ret;
}