mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[RTL] actctx.c: Revert __TRY / __EXCEPT changes
This commit is contained in:
parent
e46364314b
commit
41ff75ce36
1 changed files with 4 additions and 3 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <wine/unicode.h>
|
#include <wine/unicode.h>
|
||||||
|
#include "wine/exception.h"
|
||||||
|
|
||||||
#define GetProcessHeap() RtlGetProcessHeap()
|
#define GetProcessHeap() RtlGetProcessHeap()
|
||||||
#define GetCurrentProcess() NtCurrentProcess()
|
#define GetCurrentProcess() NtCurrentProcess()
|
||||||
|
@ -1158,7 +1159,7 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h )
|
||||||
PACTIVATION_CONTEXT_WRAPPED pActual;
|
PACTIVATION_CONTEXT_WRAPPED pActual;
|
||||||
|
|
||||||
if (!h || h == INVALID_HANDLE_VALUE) return NULL;
|
if (!h || h == INVALID_HANDLE_VALUE) return NULL;
|
||||||
_SEH2_TRY
|
__TRY
|
||||||
{
|
{
|
||||||
if (actctx)
|
if (actctx)
|
||||||
{
|
{
|
||||||
|
@ -1166,11 +1167,11 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h )
|
||||||
if (pActual->MagicMarker == ACTCTX_MAGIC_MARKER) ret = &pActual->ActivationContext;
|
if (pActual->MagicMarker == ACTCTX_MAGIC_MARKER) ret = &pActual->ActivationContext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
__EXCEPT_PAGE_FAULT
|
||||||
{
|
{
|
||||||
DPRINT1("Invalid activation context handle!\n");
|
DPRINT1("Invalid activation context handle!\n");
|
||||||
}
|
}
|
||||||
_SEH2_END;
|
__ENDTRY
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue