
|
crypt32(6/13): When creating a link context, call Context_AddRef to add-ref it so its children get add-ref'd too
--Juan
[0006-When-creating-a-link-context-call-Context_AddRef-to.patch] From cfaabb4a3b42dfb856dbf1832b3fd453247e2a9d Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang@...>
Date: Tue, 3 Nov 2009 17:05:29 -0800
Subject: [PATCH] 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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c
index 4d325c1..2f1720a 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);
--
1.6.0.6
|