Module: wine Branch: master Commit: 58f37a12511434dd4f684cacc18429b25e852856 URL: http://source.winehq.org/git/wine.git/?a=commit;h=58f37a12511434dd4f684cacc1...
Author: Jan Zerebecki jan.wine@zerebecki.de Date: Sat Mar 10 22:10:28 2007 +0100
riched20: Add DebugInfo to critical sections.
---
dlls/riched20/txtsrv.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/txtsrv.c b/dlls/riched20/txtsrv.c index 09d7287..069c916 100644 --- a/dlls/riched20/txtsrv.c +++ b/dlls/riched20/txtsrv.c @@ -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); }