Jan Zerebecki : dsound: Conform critical section DebugInfo names.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 12 08:28:48 CDT 2007


Module: wine
Branch: master
Commit: 4c4821e3052ca3376f3f43891378f5d9306dfceb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4c4821e3052ca3376f3f43891378f5d9306dfceb

Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date:   Sat Mar 10 22:08:28 2007 +0100

dsound: Conform critical section DebugInfo names.

---

 dlls/dsound/buffer.c  |    4 ++--
 dlls/dsound/capture.c |    2 +-
 dlls/dsound/dsound.c  |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index 45133d5..3f75037 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -1180,7 +1180,7 @@ HRESULT IDirectSoundBufferImpl_Create(
 		DSOUND_RecalcVolPan(&(dsb->volpan));
 
 	InitializeCriticalSection(&(dsb->lock));
-        dsb->lock.DebugInfo->Spare[0] = (DWORD_PTR)"DSOUNDBUFFER_lock";
+        dsb->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectSoundBufferImpl.lock");
 
 	/* register buffer if not primary */
 	if (!(dsbd->dwFlags & DSBCAPS_PRIMARYBUFFER)) {
@@ -1319,7 +1319,7 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
     CopyMemory(dsb->pwfx, pdsb->pwfx, size);
 
     InitializeCriticalSection(&(dsb->lock));
-    dsb->lock.DebugInfo->Spare[0] = (DWORD_PTR)"DSOUNDBUFFER_lock";
+    dsb->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectSoundBufferImpl.lock");
 
     /* register buffer */
     hres = DirectSoundDevice_AddBuffer(device, dsb);
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 68b1f06..1e14acd 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -1665,7 +1665,7 @@ static HRESULT DirectSoundCaptureDevice_Create(
     device->state = STATE_STOPPED;
 
     InitializeCriticalSection( &(device->lock) );
-    device->lock.DebugInfo->Spare[0] = (DWORD_PTR)"DSCAPTURE_lock";
+    device->lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundCaptureDevice.lock");
 
     *ppDevice = device;
 
diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
index 666ddaa..33df102 100644
--- a/dlls/dsound/dsound.c
+++ b/dlls/dsound/dsound.c
@@ -1224,7 +1224,7 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice)
     device->pwfx->cbSize = 0;
 
     InitializeCriticalSection(&(device->mixlock));
-    device->mixlock.DebugInfo->Spare[0] = (DWORD_PTR)"DSOUND_mixlock";
+    device->mixlock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": DirectSoundDevice.mixlock");
 
     RtlInitializeResource(&(device->buffer_list_lock));
 




More information about the wine-cvs mailing list