From 52820b9cf80b9fda123b32884643c9f815be853c Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 3 Nov 2009 17:05:29 -0800 Subject: [PATCH] crypt32: When creating a link context, call Context_AddRef to add-ref it so its children get add-ref'd too. --- dlls/crypt32/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c index 4d325c15e4..2f1720abb0 100644 --- a/dlls/crypt32/context.c +++ b/dlls/crypt32/context.c @@ -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);