Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
dae30652
Commit
dae30652
authored
May 23, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Remove connection from list in RPCRT4_ReleaseConnection.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
812897c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+1
-0
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+10
-0
No files found.
dlls/rpcrt4/rpc_binding.h
View file @
dae30652
...
...
@@ -91,6 +91,7 @@ typedef struct _RpcConnection
RPC_SYNTAX_IDENTIFIER
ActiveInterface
;
USHORT
NextCallId
;
struct
list
protseq_entry
;
struct
_RpcServerProtseq
*
protseq
;
struct
_RpcBinding
*
server_binding
;
}
RpcConnection
;
...
...
dlls/rpcrt4/rpc_transport.c
View file @
dae30652
...
...
@@ -227,6 +227,7 @@ static RPC_STATUS rpcrt4_protseq_ncalrpc_open_endpoint(RpcServerProtseq* protseq
EnterCriticalSection
(
&
protseq
->
cs
);
list_add_head
(
&
protseq
->
listeners
,
&
Connection
->
protseq_entry
);
Connection
->
protseq
=
protseq
;
LeaveCriticalSection
(
&
protseq
->
cs
);
return
r
;
...
...
@@ -288,6 +289,7 @@ static RPC_STATUS rpcrt4_protseq_ncacn_np_open_endpoint(RpcServerProtseq *protse
EnterCriticalSection
(
&
protseq
->
cs
);
list_add_head
(
&
protseq
->
listeners
,
&
Connection
->
protseq_entry
);
Connection
->
protseq
=
protseq
;
LeaveCriticalSection
(
&
protseq
->
cs
);
return
r
;
...
...
@@ -1323,6 +1325,7 @@ static RPC_STATUS rpcrt4_protseq_ncacn_ip_tcp_open_endpoint(RpcServerProtseq *pr
EnterCriticalSection
(
&
protseq
->
cs
);
list_add_tail
(
&
protseq
->
listeners
,
&
tcpc
->
common
.
protseq_entry
);
tcpc
->
common
.
protseq
=
protseq
;
LeaveCriticalSection
(
&
protseq
->
cs
);
freeaddrinfo
(
ai
);
...
...
@@ -3343,6 +3346,13 @@ RPC_STATUS RPCRT4_ReleaseConnection(RpcConnection* Connection)
/* server-only */
if
(
Connection
->
server_binding
)
RPCRT4_ReleaseBinding
(
Connection
->
server_binding
);
if
(
Connection
->
protseq
)
{
EnterCriticalSection
(
&
Connection
->
protseq
->
cs
);
list_remove
(
&
Connection
->
protseq_entry
);
LeaveCriticalSection
(
&
Connection
->
protseq
->
cs
);
}
HeapFree
(
GetProcessHeap
(),
0
,
Connection
);
return
RPC_S_OK
;
}
...
...
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