Juan Lang : crypt32: When creating a link context, call Context_AddRef to add-ref it so its children get add-ref'd too.
Alexandre Julliard
julliard at winehq.org
Wed Nov 4 10:26:24 CST 2009
Module: wine
Branch: master
Commit: 52820b9cf80b9fda123b32884643c9f815be853c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=52820b9cf80b9fda123b32884643c9f815be853c
Author: Juan Lang <juan.lang at gmail.com>
Date: Tue Nov 3 17:05:29 2009 -0800
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 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);
More information about the wine-cvs
mailing list