rpcrt4: Use HEAP_ZERO_MEMORY to alloc RpcServerProtseq objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
28f865b134
commit
6b53b79e18
|
@ -947,14 +947,10 @@ static RPC_STATUS alloc_serverprotoseq(UINT MaxCalls, const char *Protseq, RpcSe
|
|||
(*ps)->MaxCalls = MaxCalls;
|
||||
(*ps)->Protseq = RPCRT4_strdupA(Protseq);
|
||||
(*ps)->ops = ops;
|
||||
(*ps)->MaxCalls = 0;
|
||||
list_init(&(*ps)->listeners);
|
||||
list_init(&(*ps)->connections);
|
||||
InitializeCriticalSection(&(*ps)->cs);
|
||||
(*ps)->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": RpcServerProtseq.cs");
|
||||
(*ps)->is_listening = FALSE;
|
||||
(*ps)->mgr_mutex = NULL;
|
||||
(*ps)->server_ready_event = NULL;
|
||||
|
||||
list_add_head(&protseqs, &(*ps)->entry);
|
||||
|
||||
|
|
|
@ -642,7 +642,7 @@ typedef struct _RpcServerProtseq_np
|
|||
|
||||
static RpcServerProtseq *rpcrt4_protseq_np_alloc(void)
|
||||
{
|
||||
RpcServerProtseq_np *ps = HeapAlloc(GetProcessHeap(), 0, sizeof(*ps));
|
||||
RpcServerProtseq_np *ps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ps));
|
||||
if (ps)
|
||||
ps->mgr_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
||||
return &ps->common;
|
||||
|
@ -1507,7 +1507,7 @@ typedef struct _RpcServerProtseq_sock
|
|||
|
||||
static RpcServerProtseq *rpcrt4_protseq_sock_alloc(void)
|
||||
{
|
||||
RpcServerProtseq_sock *ps = HeapAlloc(GetProcessHeap(), 0, sizeof(*ps));
|
||||
RpcServerProtseq_sock *ps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ps));
|
||||
if (ps)
|
||||
{
|
||||
static BOOL wsa_inited;
|
||||
|
|
Loading…
Reference in New Issue