urlmon: Add DebugInfo to critical sections.

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


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

 dlls/urlmon/binding.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c
index bd4a447..ce401d0 100644
--- a/dlls/urlmon/binding.c
+++ b/dlls/urlmon/binding.c
@@ -604,6 +604,7 @@ static ULONG WINAPI Binding_Release(IBinding *iface)
             IStream_Release(STREAM(This->stream));
 
         ReleaseBindInfo(&This->bindinfo);
+        This->section.DebugInfo->Spare[0] = 0;
         DeleteCriticalSection(&This->section);
         HeapFree(GetProcessHeap(), 0, This->mime);
         HeapFree(GetProcessHeap(), 0, This->url);
@@ -1220,6 +1221,7 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
     ret->bindf = 0;
 
     InitializeCriticalSection(&ret->section);
+    ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": Binding*->section");
 
     hres = get_callback(pbc, &ret->callback);
     if(FAILED(hres)) {



More information about the wine-patches mailing list