Add CRITICAL_SECTION debug info.

This commit is contained in:
Robert Reif 2004-08-04 18:14:21 +00:00 committed by Alexandre Julliard
parent e07608064a
commit 7bf7bce0da
2 changed files with 2 additions and 0 deletions

View File

@ -934,6 +934,7 @@ HRESULT WINAPI IDirectSoundImpl_Create(
} }
InitializeCriticalSection(&(pDS->mixlock)); InitializeCriticalSection(&(pDS->mixlock));
pDS->mixlock.DebugInfo->Spare[1] = (DWORD)"DSOUND_mixlock";
RtlInitializeResource(&(pDS->lock)); RtlInitializeResource(&(pDS->lock));
*ppDS = (LPDIRECTSOUND8)pDS; *ppDS = (LPDIRECTSOUND8)pDS;

View File

@ -1167,6 +1167,7 @@ static int OSS_InitRingMessage(OSS_MSG_RING* omr)
omr->ring_buffer_size = OSS_RING_BUFFER_INCREMENT; omr->ring_buffer_size = OSS_RING_BUFFER_INCREMENT;
omr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,omr->ring_buffer_size * sizeof(OSS_MSG)); omr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,omr->ring_buffer_size * sizeof(OSS_MSG));
InitializeCriticalSection(&omr->msg_crst); InitializeCriticalSection(&omr->msg_crst);
omr->msg_crst.DebugInfo->Spare[1] = (DWORD)"WINEOSS_msg_crst";
return 0; return 0;
} }