mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 03:03:16 +00:00
[lib/rtl]
- Replace commented out try block with SEH2. Patch by Samuel Serapion. svn path=/trunk/; revision=45717
This commit is contained in:
parent
398f34f8cb
commit
f22ab97f8e
1 changed files with 4 additions and 3 deletions
|
@ -551,14 +551,15 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h )
|
||||||
ACTIVATION_CONTEXT *ret = NULL, *actctx = h;
|
ACTIVATION_CONTEXT *ret = NULL, *actctx = h;
|
||||||
|
|
||||||
if (!h || h == INVALID_HANDLE_VALUE) return NULL;
|
if (!h || h == INVALID_HANDLE_VALUE) return NULL;
|
||||||
//__TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
if (actctx && actctx->magic == ACTCTX_MAGIC) ret = actctx;
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue