urlmon: LockModule in create_binding_protocol as we ReleaseModule when the object is released.

This commit is contained in:
Misha Koshelev 2007-07-24 00:15:19 -05:00 committed by Alexandre Julliard
parent 414ddfa671
commit f5ed5a7f48

View file

@ -493,6 +493,8 @@ HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol)
ret->protocol_sink = NULL; ret->protocol_sink = NULL;
ret->priority = 0; ret->priority = 0;
URLMON_LockModule();
*protocol = PROTOCOL(ret); *protocol = PROTOCOL(ret);
return S_OK; return S_OK;
} }