rpcrt4: Change RPCRT4_ReleaseConnection return type to void.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e889b027ef
commit
2cb32b2f3b
3 changed files with 5 additions and 7 deletions
|
@ -297,14 +297,13 @@ RPC_STATUS RPCRT4_CloseBinding(RpcBinding* Binding, RpcConnection* Connection)
|
|||
if (!Connection) return RPC_S_OK;
|
||||
if (Binding->server) {
|
||||
/* don't destroy a connection that is cached in the binding */
|
||||
if (Binding->FromConn == Connection)
|
||||
return RPC_S_OK;
|
||||
return RPCRT4_ReleaseConnection(Connection);
|
||||
if (Binding->FromConn != Connection)
|
||||
RPCRT4_ReleaseConnection(Connection);
|
||||
}
|
||||
else {
|
||||
RpcAssoc_ReleaseIdleConnection(Binding->Assoc, Connection);
|
||||
return RPC_S_OK;
|
||||
}
|
||||
return RPC_S_OK;
|
||||
}
|
||||
|
||||
static LPSTR RPCRT4_strconcatA(LPSTR dst, LPCSTR src)
|
||||
|
|
|
@ -163,7 +163,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server, LPCS
|
|||
LPCSTR NetworkAddr, LPCSTR Endpoint, LPCWSTR NetworkOptions, RpcAuthInfo* AuthInfo,
|
||||
RpcQualityOfService *QOS, LPCWSTR CookieAuth) 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_CloseConnection(RpcConnection* Connection) DECLSPEC_HIDDEN;
|
||||
RPC_STATUS RPCRT4_IsServerListening(const char *protseq, const char *endpoint) DECLSPEC_HIDDEN;
|
||||
|
|
|
@ -3380,7 +3380,7 @@ RpcConnection *RPCRT4_GrabConnection(RpcConnection *connection)
|
|||
return connection;
|
||||
}
|
||||
|
||||
RPC_STATUS RPCRT4_ReleaseConnection(RpcConnection *connection)
|
||||
void RPCRT4_ReleaseConnection(RpcConnection *connection)
|
||||
{
|
||||
LONG ref = InterlockedDecrement(&connection->ref);
|
||||
|
||||
|
@ -3416,7 +3416,6 @@ RPC_STATUS RPCRT4_ReleaseConnection(RpcConnection *connection)
|
|||
|
||||
HeapFree(GetProcessHeap(), 0, connection);
|
||||
}
|
||||
return RPC_S_OK;
|
||||
}
|
||||
|
||||
RPC_STATUS RPCRT4_IsServerListening(const char *protseq, const char *endpoint)
|
||||
|
|
Loading…
Add table
Reference in a new issue