Commit 787d0ab5 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Add an error if the ref count is invalid when releasing a context.

parent 1f363cd3
......@@ -173,7 +173,10 @@ BOOL Context_Release(void *context, size_t contextSize,
BOOL ret = TRUE;
if (base->ref <= 0)
{
ERR("%p's ref count is %d\n", context, base->ref);
return FALSE;
}
if (base->type == ContextTypeLink)
{
/* The linked context is of the same type as this, so release
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment