Commit 58f37a12 authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

riched20: Add DebugInfo to critical sections.

parent 1e176b47
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment