Commit 52820b9c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: When creating a link context, call Context_AddRef to add-ref it so its…

crypt32: When creating a link context, call Context_AddRef to add-ref it so its children get add-ref'd too.
parent 5f81ad68
......@@ -94,7 +94,7 @@ void *Context_CreateLinkContext(unsigned int contextSize, void *linked, unsigned
linkContext->type = ContextTypeLink;
linkContext->linked = linkedBase;
if (addRef)
InterlockedIncrement(&linkedBase->ref);
Context_AddRef(linked, contextSize);
TRACE("%p's ref count is %d\n", context, linkContext->ref);
}
TRACE("returning %p\n", context);
......
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