rsaenh: Add DebugInfo to critical sections.

Jan Zerebecki jan.wine at zerebecki.de
Sat Mar 10 15:10:36 CST 2007


---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

 dlls/rsaenh/handle.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/rsaenh/handle.c b/dlls/rsaenh/handle.c
index 1238651..30aeacc 100644
--- a/dlls/rsaenh/handle.c
+++ b/dlls/rsaenh/handle.c
@@ -58,6 +58,7 @@ void init_handle_table(HANDLETABLE *lpTable)
     lpTable->iEntries = 0;
     lpTable->iFirstFree = 0;
     InitializeCriticalSection(&lpTable->mutex);
+    lpTable->mutex.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": HANDLETABLE*->mutex");
 }
 
 /******************************************************************************
@@ -76,6 +77,7 @@ void destroy_handle_table(HANDLETABLE *lpTable)
     TRACE("(lpTable=%p)\n", lpTable);
         
     HeapFree(GetProcessHeap(), 0, lpTable->paEntries);
+    lpTable->mutex.DebugInfo->Spare[0] = 0;
     DeleteCriticalSection(&lpTable->mutex);
 }
 



More information about the wine-patches mailing list