riched20: Add DebugInfo to critical sections.

This commit is contained in:
Jan Zerebecki 2007-03-10 22:10:28 +01:00 committed by Alexandre Julliard
parent 1e176b4739
commit 58f37a1251
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ HRESULT WINAPI CreateTextServices(IUnknown * pUnkOuter,
if (ITextImpl == NULL)
return E_OUTOFMEMORY;
InitializeCriticalSection(&ITextImpl->csTxtSrv);
ITextImpl->csTxtSrv.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ITextServicesImpl.csTxtSrv");
ITextImpl->ref = 1;
ITextHost_AddRef(pITextHost);
ITextImpl->pMyHost = pITextHost;
@ -135,6 +136,7 @@ static ULONG WINAPI fnTextSrv_Release(ITextServices *iface)
if (!ref)
{
ITextHost_Release(This->pMyHost);
This->csTxtSrv.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->csTxtSrv);
CoTaskMemFree(This);
}