more dsound lock debug info

Robert Reif reif at earthlink.net
Wed Aug 4 17:28:41 CDT 2004


Adds lock debug name to remaining locks.
-------------- next part --------------
Index: dlls/dsound/buffer.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/buffer.c,v
retrieving revision 1.26
diff -u -r1.26 buffer.c
--- dlls/dsound/buffer.c	23 Jul 2004 22:58:59 -0000	1.26
+++ dlls/dsound/buffer.c	4 Aug 2004 22:22:47 -0000
@@ -1191,6 +1191,7 @@
 		DSOUND_RecalcVolPan(&(dsb->volpan));
 
 	InitializeCriticalSection(&(dsb->lock));
+        dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock";
 
 	/* register buffer */
 	RtlAcquireResourceExclusive(&(ds->lock), TRUE);
Index: dlls/dsound/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/capture.c,v
retrieving revision 1.24
diff -u -r1.24 capture.c
--- dlls/dsound/capture.c	21 Jul 2004 03:23:13 -0000	1.24
+++ dlls/dsound/capture.c	4 Aug 2004 22:22:48 -0000
@@ -147,6 +147,7 @@
         This->state = STATE_STOPPED;
 
         InitializeCriticalSection( &(This->lock) );
+        This->lock.DebugInfo->Spare[1] = (DWORD)"DSCAPTURE_lock";
 
         This->lpVtbl = &dscvt;
         dsound_capture = This;
@@ -1746,6 +1747,7 @@
         This->lpVtbl = &dsfdvt;
 
         InitializeCriticalSection( &(This->lock) );
+        This->lock.DebugInfo->Spare[1] = (DWORD)"DSDUPLEX_lock";
 
         hres = IDirectSoundFullDuplexImpl_Initialize( (LPDIRECTSOUNDFULLDUPLEX)This,
                                                       pcGuidCaptureDevice, pcGuidRenderDevice,
Index: dlls/dsound/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound.c,v
retrieving revision 1.11
diff -u -r1.11 dsound.c
--- dlls/dsound/dsound.c	4 Aug 2004 18:14:22 -0000	1.11
+++ dlls/dsound/dsound.c	4 Aug 2004 22:22:49 -0000
@@ -555,6 +555,7 @@
     dsb->dsb = NULL;
     memcpy(&(dsb->wfx), &(pdsb->wfx), sizeof(dsb->wfx));
     InitializeCriticalSection(&(dsb->lock));
+    dsb->lock.DebugInfo->Spare[1] = (DWORD)"DSOUNDBUFFER_lock";
     /* register buffer */
     RtlAcquireResourceExclusive(&(This->lock), TRUE);
     {


More information about the wine-patches mailing list