crypt32: When creating a link context, call Context_AddRef to add-ref it so its children get add-ref'd too.

This commit is contained in:
Juan Lang 2009-11-03 17:05:29 -08:00 committed by Alexandre Julliard
parent 5f81ad6821
commit 52820b9cf8

View File

@ -94,7 +94,7 @@ void *Context_CreateLinkContext(unsigned int contextSize, void *linked, unsigned
linkContext->type = ContextTypeLink; linkContext->type = ContextTypeLink;
linkContext->linked = linkedBase; linkContext->linked = linkedBase;
if (addRef) if (addRef)
InterlockedIncrement(&linkedBase->ref); Context_AddRef(linked, contextSize);
TRACE("%p's ref count is %d\n", context, linkContext->ref); TRACE("%p's ref count is %d\n", context, linkContext->ref);
} }
TRACE("returning %p\n", context); TRACE("returning %p\n", context);