From 6c9acb67bcc0619041cd17af58e985bdc290bbf5 Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Sat, 10 Mar 2007 22:11:33 +0100 Subject: [PATCH] wineesd.drv: Add DebugInfo to critical sections. --- dlls/wineesd.drv/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c index 708f2434997..0bef7d088e1 100644 --- a/dlls/wineesd.drv/audio.c +++ b/dlls/wineesd.drv/audio.c @@ -545,7 +545,7 @@ static int ESD_InitRingMessage(ESD_MSG_RING* mr) mr->ring_buffer_size = ESD_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)"WINEESD_msg_crst"; + mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ESD_MSG_RING.msg_crst"); return 0; } @@ -563,6 +563,7 @@ static int ESD_DestroyRingMessage(ESD_MSG_RING* mr) #endif HeapFree(GetProcessHeap(),0,mr->messages); mr->messages=NULL; + mr->msg_crst.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&mr->msg_crst); return 0; }