Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2cb32b2f
Commit
2cb32b2f
authored
Jun 08, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Change RPCRT4_ReleaseConnection return type to void.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e889b027
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+3
-4
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+1
-1
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+1
-2
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
2cb32b2f
...
@@ -297,14 +297,13 @@ RPC_STATUS RPCRT4_CloseBinding(RpcBinding* Binding, RpcConnection* Connection)
...
@@ -297,14 +297,13 @@ RPC_STATUS RPCRT4_CloseBinding(RpcBinding* Binding, RpcConnection* Connection)
if
(
!
Connection
)
return
RPC_S_OK
;
if
(
!
Connection
)
return
RPC_S_OK
;
if
(
Binding
->
server
)
{
if
(
Binding
->
server
)
{
/* don't destroy a connection that is cached in the binding */
/* don't destroy a connection that is cached in the binding */
if
(
Binding
->
FromConn
==
Connection
)
if
(
Binding
->
FromConn
!=
Connection
)
return
RPC_S_OK
;
RPCRT4_ReleaseConnection
(
Connection
);
return
RPCRT4_ReleaseConnection
(
Connection
);
}
}
else
{
else
{
RpcAssoc_ReleaseIdleConnection
(
Binding
->
Assoc
,
Connection
);
RpcAssoc_ReleaseIdleConnection
(
Binding
->
Assoc
,
Connection
);
return
RPC_S_OK
;
}
}
return
RPC_S_OK
;
}
}
static
LPSTR
RPCRT4_strconcatA
(
LPSTR
dst
,
LPCSTR
src
)
static
LPSTR
RPCRT4_strconcatA
(
LPSTR
dst
,
LPCSTR
src
)
...
...
dlls/rpcrt4/rpc_binding.h
View file @
2cb32b2f
...
@@ -163,7 +163,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server, LPCS
...
@@ -163,7 +163,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server, LPCS
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCWSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
RpcQualityOfService
*
QOS
,
LPCWSTR
CookieAuth
)
DECLSPEC_HIDDEN
;
RpcQualityOfService
*
QOS
,
LPCWSTR
CookieAuth
)
DECLSPEC_HIDDEN
;
RpcConnection
*
RPCRT4_GrabConnection
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
RpcConnection
*
RPCRT4_GrabConnection
(
RpcConnection
*
conn
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_ReleaseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
void
RPCRT4_ReleaseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_OpenClientConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_OpenClientConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_CloseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_CloseConnection
(
RpcConnection
*
Connection
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
)
DECLSPEC_HIDDEN
;
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
)
DECLSPEC_HIDDEN
;
...
...
dlls/rpcrt4/rpc_transport.c
View file @
2cb32b2f
...
@@ -3380,7 +3380,7 @@ RpcConnection *RPCRT4_GrabConnection(RpcConnection *connection)
...
@@ -3380,7 +3380,7 @@ RpcConnection *RPCRT4_GrabConnection(RpcConnection *connection)
return
connection
;
return
connection
;
}
}
RPC_STATUS
RPCRT4_ReleaseConnection
(
RpcConnection
*
connection
)
void
RPCRT4_ReleaseConnection
(
RpcConnection
*
connection
)
{
{
LONG
ref
=
InterlockedDecrement
(
&
connection
->
ref
);
LONG
ref
=
InterlockedDecrement
(
&
connection
->
ref
);
...
@@ -3416,7 +3416,6 @@ RPC_STATUS RPCRT4_ReleaseConnection(RpcConnection *connection)
...
@@ -3416,7 +3416,6 @@ RPC_STATUS RPCRT4_ReleaseConnection(RpcConnection *connection)
HeapFree
(
GetProcessHeap
(),
0
,
connection
);
HeapFree
(
GetProcessHeap
(),
0
,
connection
);
}
}
return
RPC_S_OK
;
}
}
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
)
RPC_STATUS
RPCRT4_IsServerListening
(
const
char
*
protseq
,
const
char
*
endpoint
)
...
...
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