Module: wine Branch: master Commit: f5ed5a7f48d0ee034570738890cecc33d0b3b87b URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5ed5a7f48d0ee034570738890... Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Tue Jul 24 00:15:19 2007 -0500 urlmon: LockModule in create_binding_protocol as we ReleaseModule when the object is released. --- 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 c7e62f9..6b175f6 100644 --- a/dlls/urlmon/bindprot.c +++ b/dlls/urlmon/bindprot.c @@ -493,6 +493,8 @@ HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol) ret->protocol_sink = NULL; ret->priority = 0; + URLMON_LockModule(); + *protocol = PROTOCOL(ret); return S_OK; }