From: Paul Gofman pgofman@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;