[RPCRT4] Add SEH to avoid leaking locks / memory

This commit is contained in:
Timo Kreuzer 2025-02-01 14:10:37 +02:00
parent daf557b245
commit 486ab63862

View file

@ -59,8 +59,20 @@ static struct context_handle_entry *get_context_entry(NDR_CCONTEXT CContext)
{
struct context_handle_entry *che = CContext;
#ifdef __REACTOS__
__TRY
{
#endif
if (che->magic != NDR_CONTEXT_HANDLE_MAGIC)
return NULL;
#ifdef __REACTOS__
}
__EXCEPT_ALL
{
return NULL;
}
__ENDTRY
#endif
return che;
}