Jan Zerebecki : dmloader: Add DebugInfo to critical sections.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:54 CDT 2007
Module: wine
Branch: master
Commit: 70f6afdc9c9053d8f53557b63fe73650d904ad52
URL: http://source.winehq.org/git/wine.git/?a=commit;h=70f6afdc9c9053d8f53557b63fe73650d904ad52
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Sat Mar 10 22:08:12 2007 +0100
dmloader: Add DebugInfo to critical sections.
---
dlls/dmloader/loader.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/dmloader/loader.c b/dlls/dmloader/loader.c
index f453221..c89e5e7 100644
--- a/dlls/dmloader/loader.c
+++ b/dlls/dmloader/loader.c
@@ -805,7 +805,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicLoaderImpl (LPCGUID lpcGUID, LPVOID *ppob
obj->dwRef = 0; /* will be inited with QueryInterface */
/* init critical section */
/* init cache/alias list */
- /*InitializeCriticalSection (&obj->CritSect); */
+ /*InitializeCriticalSection (&obj->CritSect);
+ obj->CritSect.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectMusicLoaderImpl.CritSect"); */
obj->pObjects = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(struct list));
list_init (obj->pObjects);
/* init settings */
@@ -846,7 +847,8 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicLoaderImpl (LPDIRECTMUSICLOADER8 iface)
IDirectMusicLoader8_ClearCache (iface, &GUID_DirectMusicAllTypes);
/* FIXME: release all allocated entries */
/* destroy critical section */
- /*DeleteCriticalSection (&This->CritSect); */
+ /*This->CritSect.DebugInfo->Spare[0] = 0;
+ DeleteCriticalSection (&This->CritSect); */
/* decrease number of instances */
InterlockedDecrement (&dwDirectMusicLoader);
More information about the wine-cvs
mailing list