Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6b53b79e
Commit
6b53b79e
authored
May 24, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
May 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
28f865b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
rpc_server.c
dlls/rpcrt4/rpc_server.c
+0
-4
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+2
-2
No files found.
dlls/rpcrt4/rpc_server.c
View file @
6b53b79e
...
...
@@ -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
);
...
...
dlls/rpcrt4/rpc_transport.c
View file @
6b53b79e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment