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

This commit is contained in:
Juan Lang 2009-11-03 16:46:50 -08:00 committed by Alexandre Julliard
parent 1f363cd399
commit 787d0ab564

View File

@ -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