Commit ab313dd3 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr120: Fix exception object refcounting in __ExceptionPtrAssign.

parent f9b881e3
...@@ -1773,7 +1773,12 @@ void __cdecl __ExceptionPtrAssign(exception_ptr *ep, const exception_ptr *assign ...@@ -1773,7 +1773,12 @@ void __cdecl __ExceptionPtrAssign(exception_ptr *ep, const exception_ptr *assign
TRACE("(%p %p)\n", ep, assign); TRACE("(%p %p)\n", ep, assign);
/* don't destroy object stored in ep */ /* don't destroy object stored in ep */
if (ep->ref)
InterlockedDecrement(ep->ref);
*ep = *assign; *ep = *assign;
if (ep->ref)
InterlockedIncrement(ep->ref);
} }
/********************************************************************* /*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment