winenas.drv: Add DebugInfo to critical sections.

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


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

 dlls/winenas.drv/audio.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index 73b6b88..cb22eaa 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -461,6 +461,7 @@ static int NAS_InitRingMessage(MSG_RING* mr)
     mr->ring_buffer_size = NAS_RING_BUFFER_INCREMENT;
     mr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,mr->ring_buffer_size * sizeof(RING_MSG));
     InitializeCriticalSection(&mr->msg_crst);
+    mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": MSG_RING*->msg_crst");
     return 0;
 }
 
@@ -472,6 +473,7 @@ static int NAS_DestroyRingMessage(MSG_RING* mr)
 {
     CloseHandle(mr->msg_event);
     HeapFree(GetProcessHeap(),0,mr->messages);
+    mr->msg_crst.DebugInfo->Spare[0] = 0;
     DeleteCriticalSection(&mr->msg_crst);
     return 0;
 }



More information about the wine-patches mailing list