Jan Zerebecki : wineaudioio.drv: Add DebugInfo to critical sections.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:51 CDT 2007
Module: wine
Branch: master
Commit: 8629c53d3f67731417b59db109040fedb7630f02
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8629c53d3f67731417b59db109040fedb7630f02
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Sat Mar 10 22:11:26 2007 +0100
wineaudioio.drv: Add DebugInfo to critical sections.
Also add missing DeleteCriticalSection.
---
dlls/wineaudioio.drv/audio.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wineaudioio.drv/audio.c b/dlls/wineaudioio.drv/audio.c
index 06fbb26..8225527 100644
--- a/dlls/wineaudioio.drv/audio.c
+++ b/dlls/wineaudioio.drv/audio.c
@@ -901,6 +901,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwo->msg_event = CreateEventW(NULL, FALSE, FALSE, NULL);
memset(wwo->messages, 0, sizeof(WWO_MSG)*WWO_RING_BUFFER_SIZE);
InitializeCriticalSection(&wwo->msg_crst);
+ wwo->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": WINE_WAVEOUT.msg_crst");
if (!(dwFlags & WAVE_DIRECTSOUND)) {
TRACE("Starting wodPlayer Thread\n");
@@ -953,6 +954,10 @@ static DWORD wodClose(WORD wDevID)
ret = WAVERR_STILLPLAYING;
} else {
TRACE("imhere[3-close]\n");
+
+ wwo->msg_crst.DebugInfo->Spare[0] = 0;
+ DeleteCriticalSection(&wwo->msg_crst);
+
if (wwo->hEvent != INVALID_HANDLE_VALUE) {
wodPlayer_Message(wwo, WINE_WM_CLOSING, 0);
WaitForSingleObject(wwo->hEvent, INFINITE);
More information about the wine-cvs
mailing list