urlmon: Use heap_alloc_zero to allocate BindProtocol.
This commit is contained in:
parent
f4ded1c2a5
commit
8f09522357
|
@ -530,7 +530,7 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
|
||||||
|
|
||||||
HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol)
|
HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol)
|
||||||
{
|
{
|
||||||
BindProtocol *ret = heap_alloc(sizeof(BindProtocol));
|
BindProtocol *ret = heap_alloc_zero(sizeof(BindProtocol));
|
||||||
|
|
||||||
ret->lpInternetProtocolVtbl = &BindProtocolVtbl;
|
ret->lpInternetProtocolVtbl = &BindProtocolVtbl;
|
||||||
ret->lpInternetBindInfoVtbl = &InternetBindInfoVtbl;
|
ret->lpInternetBindInfoVtbl = &InternetBindInfoVtbl;
|
||||||
|
@ -539,11 +539,6 @@ HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol)
|
||||||
ret->lpInternetProtocolSinkVtbl = &InternetProtocolSinkVtbl;
|
ret->lpInternetProtocolSinkVtbl = &InternetProtocolSinkVtbl;
|
||||||
|
|
||||||
ret->ref = 1;
|
ret->ref = 1;
|
||||||
ret->protocol = NULL;
|
|
||||||
ret->bind_info = NULL;
|
|
||||||
ret->protocol_sink = NULL;
|
|
||||||
ret->service_provider = NULL;
|
|
||||||
ret->priority = 0;
|
|
||||||
|
|
||||||
URLMON_LockModule();
|
URLMON_LockModule();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue