24 Jan
2025
24 Jan
'25
8:46 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 4a16d42296b..76034be3cf6 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -108,7 +108,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