From 273470e8ba403ffcd3d827a58c1f7911357d869a Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Wed, 18 Jan 2006 14:03:23 +0100 Subject: [PATCH] winealsa: Add critical section names for debugging. --- dlls/winmm/winealsa/audio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index 7beab7b75de..d0f095fec3f 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -1663,6 +1663,7 @@ static int ALSA_InitRingMessage(ALSA_MSG_RING* omr) omr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,omr->ring_buffer_size * sizeof(ALSA_MSG)); InitializeCriticalSection(&omr->msg_crst); + omr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)"WINEALSA_msg_crst"; return 0; } @@ -1680,6 +1681,7 @@ static int ALSA_DestroyRingMessage(ALSA_MSG_RING* omr) #endif HeapFree(GetProcessHeap(),0,omr->messages); omr->ring_buffer_size = 0; + omr->msg_crst.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&omr->msg_crst); return 0; } @@ -3178,6 +3180,7 @@ static int DSDB_CreateMMAP(IDsDriverBufferImpl* pdbi) frames, pdbi->mmap_buflen_bytes, pdbi->mmap_buffer); InitializeCriticalSection(&pdbi->mmap_crst); + pdbi->mmap_crst.DebugInfo->Spare[0] = (DWORD_PTR)"WINEALSA_mmap_crst"; err = snd_async_add_pcm_handler(&pdbi->mmap_async_handler, wwo->pcm, DSDB_PCMCallback, pdbi); if ( err < 0 ) @@ -3194,6 +3197,7 @@ static void DSDB_DestroyMMAP(IDsDriverBufferImpl* pdbi) TRACE("mmap buffer %p destroyed\n", pdbi->mmap_buffer); pdbi->mmap_areas = NULL; pdbi->mmap_buffer = NULL; + pdbi->mmap_crst.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&pdbi->mmap_crst); }