dmime: Add DebugInfo to critical sections.
Jan Zerebecki
jan.wine at zerebecki.de
Thu Mar 8 09:34:00 CST 2007
---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.
dlls/dmime/performance.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 5ecf7d0..1b93f75 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -196,6 +196,7 @@ static ULONG WINAPI IDirectMusicPerformance8Impl_Release (LPDIRECTMUSICPERFORMAN
TRACE("(%p): ReleaseRef to %d\n", This, ref);
if (ref == 0) {
+ This->safe.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->safe);
HeapFree(GetProcessHeap(), 0, This);
}
@@ -1040,6 +1041,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID, LPVOID
obj->pDirectSound = NULL;
obj->pDefaultPath = NULL;
InitializeCriticalSection(&obj->safe);
+ obj->safe.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectMusicPerformance8Impl*->safe");
/**
* @see http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/htm/latencyandbumpertime.asp
More information about the wine-patches
mailing list