Gabriel Ivăncescu : jscript: Fix JSCaller Release refcount.
Module: wine Branch: master Commit: aa7f3b1ef6efec4aa7cec131ec03086833bb4813 URL: https://gitlab.winehq.org/wine/wine/-/commit/aa7f3b1ef6efec4aa7cec131ec03086... Author: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> Date: Tue Dec 20 21:39:46 2022 +0200 jscript: Fix JSCaller Release refcount. Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/jscript/jsutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/jsutils.c b/dlls/jscript/jsutils.c index 8c1eedf4283..3dfcd08f14c 100644 --- a/dlls/jscript/jsutils.c +++ b/dlls/jscript/jsutils.c @@ -1017,7 +1017,7 @@ static ULONG WINAPI JSCaller_AddRef(IServiceProvider *iface) static ULONG WINAPI JSCaller_Release(IServiceProvider *iface) { JSCaller *This = impl_from_IServiceProvider(iface); - LONG ref = InterlockedIncrement(&This->ref); + LONG ref = InterlockedDecrement(&This->ref); TRACE("(%p) ref=%ld\n", This, ref);
participants (1)
-
Alexandre Julliard