mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[RPCRT4] Add SEH to avoid leaking locks / memory
This commit is contained in:
parent
daf557b245
commit
486ab63862
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue