mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 10:44:47 +00:00
wineaudioio.drv: Add DebugInfo to critical sections.
Also add missing DeleteCriticalSection.
This commit is contained in:
parent
6c9acb67bc
commit
8629c53d3f
1 changed files with 5 additions and 0 deletions
|
@ -901,6 +901,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
||||||
wwo->msg_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
wwo->msg_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
||||||
memset(wwo->messages, 0, sizeof(WWO_MSG)*WWO_RING_BUFFER_SIZE);
|
memset(wwo->messages, 0, sizeof(WWO_MSG)*WWO_RING_BUFFER_SIZE);
|
||||||
InitializeCriticalSection(&wwo->msg_crst);
|
InitializeCriticalSection(&wwo->msg_crst);
|
||||||
|
wwo->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": WINE_WAVEOUT.msg_crst");
|
||||||
|
|
||||||
if (!(dwFlags & WAVE_DIRECTSOUND)) {
|
if (!(dwFlags & WAVE_DIRECTSOUND)) {
|
||||||
TRACE("Starting wodPlayer Thread\n");
|
TRACE("Starting wodPlayer Thread\n");
|
||||||
|
@ -953,6 +954,10 @@ static DWORD wodClose(WORD wDevID)
|
||||||
ret = WAVERR_STILLPLAYING;
|
ret = WAVERR_STILLPLAYING;
|
||||||
} else {
|
} else {
|
||||||
TRACE("imhere[3-close]\n");
|
TRACE("imhere[3-close]\n");
|
||||||
|
|
||||||
|
wwo->msg_crst.DebugInfo->Spare[0] = 0;
|
||||||
|
DeleteCriticalSection(&wwo->msg_crst);
|
||||||
|
|
||||||
if (wwo->hEvent != INVALID_HANDLE_VALUE) {
|
if (wwo->hEvent != INVALID_HANDLE_VALUE) {
|
||||||
wodPlayer_Message(wwo, WINE_WM_CLOSING, 0);
|
wodPlayer_Message(wwo, WINE_WM_CLOSING, 0);
|
||||||
WaitForSingleObject(wwo->hEvent, INFINITE);
|
WaitForSingleObject(wwo->hEvent, INFINITE);
|
||||||
|
|
Loading…
Reference in a new issue