dsound and wineoss CRITICAL_SECTION debug info

Robert Reif reif at earthlink.net
Mon Aug 2 19:27:57 CDT 2004


Add CRITICAL_SECTION debug info.
-------------- next part --------------
Index: dlls/dsound/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound.c,v
retrieving revision 1.10
diff -u -r1.10 dsound.c
--- dlls/dsound/dsound.c	2 Aug 2004 18:27:16 -0000	1.10
+++ dlls/dsound/dsound.c	2 Aug 2004 23:53:38 -0000
@@ -934,6 +934,7 @@
     }
 
     InitializeCriticalSection(&(pDS->mixlock));
+    pDS->mixlock.DebugInfo->Spare[1] = (DWORD)"DSOUND_mixlock";
     RtlInitializeResource(&(pDS->lock));
 
     *ppDS = (LPDIRECTSOUND8)pDS;
Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.136
diff -u -r1.136 audio.c
--- dlls/winmm/wineoss/audio.c	23 Jul 2004 23:01:21 -0000	1.136
+++ dlls/winmm/wineoss/audio.c	2 Aug 2004 23:53:44 -0000
@@ -1167,6 +1167,7 @@
     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[1] = (DWORD)"WINEOSS_msg_crst";
     return 0;
 }
 


More information about the wine-patches mailing list