dmime: Add DebugInfo to critical sections.

This commit is contained in:
Jan Zerebecki 2007-03-08 16:34:00 +01:00 committed by Alexandre Julliard
parent 52a630a3a8
commit 93a4c27336
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ static ULONG WINAPI IDirectMusicPerformance8Impl_Release (LPDIRECTMUSICPERFORMAN
TRACE("(%p): ReleaseRef to %d\n", This, ref); TRACE("(%p): ReleaseRef to %d\n", This, ref);
if (ref == 0) { if (ref == 0) {
This->safe.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->safe); DeleteCriticalSection(&This->safe);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
} }
@ -1040,6 +1041,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID, LPVOID
obj->pDirectSound = NULL; obj->pDirectSound = NULL;
obj->pDefaultPath = NULL; obj->pDefaultPath = NULL;
InitializeCriticalSection(&obj->safe); 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 * @see http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/htm/latencyandbumpertime.asp