msvcr120: Fix exception object refcounting in __ExceptionPtrAssign.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f9b881e30c
commit
ab313dd3be
|
@ -1773,7 +1773,12 @@ void __cdecl __ExceptionPtrAssign(exception_ptr *ep, const exception_ptr *assign
|
|||
TRACE("(%p %p)\n", ep, assign);
|
||||
|
||||
/* don't destroy object stored in ep */
|
||||
if (ep->ref)
|
||||
InterlockedDecrement(ep->ref);
|
||||
|
||||
*ep = *assign;
|
||||
if (ep->ref)
|
||||
InterlockedIncrement(ep->ref);
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
Loading…
Reference in New Issue