mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
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:
parent
5f81ad6821
commit
52820b9cf8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user