Jan Zerebecki : crypt32: Add DebugInfo to critical sections.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:36 CDT 2007
Module: wine
Branch: master
Commit: e8956eb48b07a0b05f4cf2ebe89f58c7f90050d7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e8956eb48b07a0b05f4cf2ebe89f58c7f90050d7
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Sat Mar 10 22:08:02 2007 +0100
crypt32: Add DebugInfo to critical sections.
---
dlls/crypt32/context.c | 2 ++
dlls/crypt32/oid.c | 6 ++++++
dlls/crypt32/proplist.c | 2 ++
dlls/crypt32/store.c | 4 ++++
4 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/context.c b/dlls/crypt32/context.c
index 96e7198..ab57c57 100644
--- a/dlls/crypt32/context.c
+++ b/dlls/crypt32/context.c
@@ -192,6 +192,7 @@ struct ContextList *ContextList_Create(
list->contextInterface = contextInterface;
list->contextSize = contextSize;
InitializeCriticalSection(&list->cs);
+ list->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ContextList.cs");
list_init(&list->contexts);
}
return list;
@@ -303,6 +304,7 @@ void ContextList_Empty(struct ContextList *list)
void ContextList_Free(struct ContextList *list)
{
ContextList_Empty(list);
+ list->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&list->cs);
CryptMemFree(list);
}
diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c
index 20d3b5d..bbad491 100644
--- a/dlls/crypt32/oid.c
+++ b/dlls/crypt32/oid.c
@@ -75,6 +75,7 @@ struct OIDFunction
static void init_function_sets(void)
{
InitializeCriticalSection(&funcSetCS);
+ funcSetCS.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": funcSetCS");
list_init(&funcSets);
}
@@ -95,9 +96,11 @@ static void free_function_sets(void)
list_remove(&functionCursor->next);
CryptMemFree(functionCursor);
}
+ setCursor->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&setCursor->cs);
CryptMemFree(setCursor);
}
+ funcSetCS.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&funcSetCS);
}
@@ -130,6 +133,7 @@ HCRYPTOIDFUNCSET WINAPI CryptInitOIDFunctionSet(LPCSTR pszFuncName,
if (ret->name)
{
InitializeCriticalSection(&ret->cs);
+ ret->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": OIDFunctionSet.cs");
list_init(&ret->functions);
strcpy(ret->name, pszFuncName);
list_add_tail(&funcSets, &ret->next);
@@ -1178,6 +1182,7 @@ static void init_oid_info(HINSTANCE hinst)
DWORD i;
InitializeCriticalSection(&oidInfoCS);
+ oidInfoCS.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": oidInfoCS");
list_init(&oidInfo);
for (i = 0; i < sizeof(oidInfoConstructors) /
sizeof(oidInfoConstructors[0]); i++)
@@ -1250,6 +1255,7 @@ static void free_oid_info(void)
list_remove(&info->entry);
CryptMemFree(info);
}
+ oidInfoCS.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&oidInfoCS);
}
diff --git a/dlls/crypt32/proplist.c b/dlls/crypt32/proplist.c
index e1d4998..31cd53b 100644
--- a/dlls/crypt32/proplist.c
+++ b/dlls/crypt32/proplist.c
@@ -47,6 +47,7 @@ PCONTEXT_PROPERTY_LIST ContextPropertyList_Create(void)
if (list)
{
InitializeCriticalSection(&list->cs);
+ list->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PCONTEXT_PROPERTY_LIST->cs");
list_init(&list->properties);
}
return list;
@@ -63,6 +64,7 @@ void ContextPropertyList_Free(PCONTEXT_PROPERTY_LIST list)
CryptMemFree(prop->pbData);
CryptMemFree(prop);
}
+ list->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&list->cs);
CryptMemFree(list);
}
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index 8c8cda5..1447d37 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -370,6 +370,7 @@ static void WINAPI CRYPT_CollectionCloseStore(HCERTSTORE store, DWORD dwFlags)
CertCloseStore((HCERTSTORE)entry->store, dwFlags);
CryptMemFree(entry);
}
+ cs->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&cs->cs);
CryptMemFree(cs);
}
@@ -675,6 +676,7 @@ static WINECRYPT_CERTSTORE *CRYPT_CollectionOpenStore(HCRYPTPROV hCryptProv,
store->hdr.crls.enumContext = CRYPT_CollectionEnumCRL;
store->hdr.crls.deleteContext = CRYPT_CollectionDeleteCRL;
InitializeCriticalSection(&store->cs);
+ store->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PWINE_COLLECTIONSTORE->cs");
list_init(&store->stores);
}
}
@@ -1225,6 +1227,7 @@ static void WINAPI CRYPT_RegCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
CRYPT_RegFlushStore(store, FALSE);
RegCloseKey(store->key);
+ store->cs.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&store->cs);
CryptMemFree(store);
}
@@ -1471,6 +1474,7 @@ static WINECRYPT_CERTSTORE *CRYPT_RegOpenStore(HCRYPTPROV hCryptProv,
regInfo->memStore = memStore;
regInfo->key = key;
InitializeCriticalSection(®Info->cs);
+ regInfo->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": PWINE_REGSTOREINFO->cs");
list_init(®Info->certsToDelete);
list_init(®Info->crlsToDelete);
CRYPT_RegReadFromReg(regInfo);
More information about the wine-cvs
mailing list