Francois Gouget : urlmon: Give a name to the critical sections.

Alexandre Julliard julliard at winehq.org
Mon Nov 14 13:34:00 CST 2011


Module: wine
Branch: master
Commit: 3e16622a456ae0869399c6faa155e0843f010d6a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3e16622a456ae0869399c6faa155e0843f010d6a

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Nov 14 15:09:42 2011 +0100

urlmon: Give a name to the critical sections.

---

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

diff --git a/dlls/urlmon/bindprot.c b/dlls/urlmon/bindprot.c
index 45cf14c..cfb5cec 100644
--- a/dlls/urlmon/bindprot.c
+++ b/dlls/urlmon/bindprot.c
@@ -346,6 +346,7 @@ static ULONG WINAPI BindProtocol_Release(IInternetProtocolEx *iface)
 
         if(This->notif_hwnd)
             release_notif_hwnd(This->notif_hwnd);
+        This->section.DebugInfo->Spare[0] = 0;
         DeleteCriticalSection(&This->section);
 
         heap_free(This->mime);
@@ -1314,6 +1315,7 @@ HRESULT create_binding_protocol(BOOL from_urlmon, BindProtocol **protocol)
     ret->notif_hwnd = get_notif_hwnd();
     ret->protocol_handler = &ret->default_protocol_handler.IInternetProtocol_iface;
     InitializeCriticalSection(&ret->section);
+    ret->section.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": BindProtocol.section");
 
     URLMON_LockModule();
 




More information about the wine-cvs mailing list