Module: wine Branch: master Commit: bab5279d3884af58caeb6c569b8cf593c0b04871 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bab5279d3884af58caeb6c569b...
Author: Jan Zerebecki jan.wine@zerebecki.de Date: Sat Mar 10 22:11:51 2007 +0100
wineoss.drv: Add DebugInfo to critical sections.
---
dlls/wineoss.drv/audio.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wineoss.drv/audio.c b/dlls/wineoss.drv/audio.c index 36f5cd9..98f5a70 100644 --- a/dlls/wineoss.drv/audio.c +++ b/dlls/wineoss.drv/audio.c @@ -1230,7 +1230,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[0] = (DWORD_PTR)"WINEOSS_msg_crst"; + omr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": OSS_MSG_RING.msg_crst"); return 0; }
@@ -1247,6 +1247,7 @@ static int OSS_DestroyRingMessage(OSS_MSG_RING* omr) CloseHandle(omr->msg_event); #endif HeapFree(GetProcessHeap(),0,omr->messages); + omr->msg_crst.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&omr->msg_crst); return 0; }