24 Jan
2025
24 Jan
'25
11:49 p.m.
From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/crypt32/context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index 1a982f7bd0a..812fb51e36b 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -110,7 +110,12 @@ void Context_Release(context_t *context) LONG ref = InterlockedDecrement(&context->ref); TRACE("(%p) ref=%ld\n", context, ref); - assert(ref >= 0); + + if (ref < 0) + { + ERR( "ref %ld.\n", ref ); + return; + } if (!ref) { WINECRYPT_CERTSTORE *store = context->store; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7193