From 7bf7bce0da7b665b0ec0936c2430ba32dd8bf495 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Wed, 4 Aug 2004 18:14:21 +0000 Subject: [PATCH] Add CRITICAL_SECTION debug info. --- dlls/dsound/dsound.c | 1 + dlls/winmm/wineoss/audio.c | 1 + 2 files changed, 2 insertions(+) diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 1a300a91696..02fcd6f83a3 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -934,6 +934,7 @@ HRESULT WINAPI IDirectSoundImpl_Create( } InitializeCriticalSection(&(pDS->mixlock)); + pDS->mixlock.DebugInfo->Spare[1] = (DWORD)"DSOUND_mixlock"; RtlInitializeResource(&(pDS->lock)); *ppDS = (LPDIRECTSOUND8)pDS; diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index 805b8bc4de7..e65f68f801e 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -1167,6 +1167,7 @@ static int OSS_InitRingMessage(OSS_MSG_RING* omr) omr->ring_buffer_size = OSS_RING_BUFFER_INCREMENT; omr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,omr->ring_buffer_size * sizeof(OSS_MSG)); InitializeCriticalSection(&omr->msg_crst); + omr->msg_crst.DebugInfo->Spare[1] = (DWORD)"WINEOSS_msg_crst"; return 0; } -- 2.11.4.GIT