riched20: Add DebugInfo to critical sections.

Jan Zerebecki jan.wine at zerebecki.de
Sat Mar 10 15:10:28 CST 2007


---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

 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..d1c58ec 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);
    }



More information about the wine-patches mailing list