mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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)
|
||||
{
|
||||
BindProtocol *ret = heap_alloc(sizeof(BindProtocol));
|
||||
BindProtocol *ret = heap_alloc_zero(sizeof(BindProtocol));
|
||||
|
||||
ret->lpInternetProtocolVtbl = &BindProtocolVtbl;
|
||||
ret->lpInternetBindInfoVtbl = &InternetBindInfoVtbl;
|
||||
@ -539,11 +539,6 @@ HRESULT create_binding_protocol(LPCWSTR url, IInternetProtocol **protocol)
|
||||
ret->lpInternetProtocolSinkVtbl = &InternetProtocolSinkVtbl;
|
||||
|
||||
ret->ref = 1;
|
||||
ret->protocol = NULL;
|
||||
ret->bind_info = NULL;
|
||||
ret->protocol_sink = NULL;
|
||||
ret->service_provider = NULL;
|
||||
ret->priority = 0;
|
||||
|
||||
URLMON_LockModule();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user