Commit 2cb32b2f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

rpcrt4: Change RPCRT4_ReleaseConnection return type to void.

parent e889b027
...@@ -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)
......
...@@ -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;
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment