Juan Lang : crypt32: When removing contexts from a list, make sure the context no longer references the list.
Alexandre Julliard
julliard at winehq.org
Wed Nov 4 10:26:24 CST 2009
Module: wine
Branch: master
Commit: fb5e0d8a4d85483a3093cf0fdad21eb0da7264a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb5e0d8a4d85483a3093cf0fdad21eb0da7264a4
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Oct 30 16:43:24 2009 -0700
crypt32: When removing contexts from a list, make sure the context no longer references the list.
---
dlls/crypt32/context.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c
index 9ada6bf..20fe024 100644
--- a/dlls/crypt32/context.c
+++ b/dlls/crypt32/context.c
@@ -289,6 +289,7 @@ void ContextList_Delete(struct ContextList *list, void *context)
EnterCriticalSection(&list->cs);
list_remove(entry);
LeaveCriticalSection(&list->cs);
+ list_init(entry);
list->contextInterface->free(context);
}
More information about the wine-cvs
mailing list