Add CRITICAL_SECTION debug info.
This commit is contained in:
parent
e07608064a
commit
7bf7bce0da
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue