rpcrt4: Remove a couple of unused local variables.
This commit is contained in:
parent
0abc475365
commit
95ea352738
|
@ -798,13 +798,10 @@ RPC_STATUS WINAPI RpcBindingFree( RPC_BINDING_HANDLE* Binding )
|
||||||
*/
|
*/
|
||||||
RPC_STATUS WINAPI RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector )
|
RPC_STATUS WINAPI RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector )
|
||||||
{
|
{
|
||||||
RPC_STATUS status;
|
|
||||||
ULONG c;
|
ULONG c;
|
||||||
|
|
||||||
TRACE("(%p)\n", BindingVector);
|
TRACE("(%p)\n", BindingVector);
|
||||||
for (c=0; c<(*BindingVector)->Count; c++) {
|
for (c=0; c<(*BindingVector)->Count; c++) RpcBindingFree(&(*BindingVector)->BindingH[c]);
|
||||||
status = RpcBindingFree(&(*BindingVector)->BindingH[c]);
|
|
||||||
}
|
|
||||||
HeapFree(GetProcessHeap(), 0, *BindingVector);
|
HeapFree(GetProcessHeap(), 0, *BindingVector);
|
||||||
*BindingVector = NULL;
|
*BindingVector = NULL;
|
||||||
return RPC_S_OK;
|
return RPC_S_OK;
|
||||||
|
|
|
@ -503,29 +503,22 @@ static void RPCRT4_process_packet(RpcConnection* conn, RpcPktHdr* hdr,
|
||||||
RPC_MESSAGE* msg, unsigned char *auth_data,
|
RPC_MESSAGE* msg, unsigned char *auth_data,
|
||||||
ULONG auth_length)
|
ULONG auth_length)
|
||||||
{
|
{
|
||||||
RPC_STATUS status;
|
|
||||||
|
|
||||||
msg->Handle = (RPC_BINDING_HANDLE)conn->server_binding;
|
msg->Handle = (RPC_BINDING_HANDLE)conn->server_binding;
|
||||||
|
|
||||||
switch (hdr->common.ptype) {
|
switch (hdr->common.ptype) {
|
||||||
case PKT_BIND:
|
case PKT_BIND:
|
||||||
TRACE("got bind packet\n");
|
TRACE("got bind packet\n");
|
||||||
|
process_bind_packet(conn, &hdr->bind, msg, auth_data, auth_length);
|
||||||
status = process_bind_packet(conn, &hdr->bind, msg, auth_data,
|
|
||||||
auth_length);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PKT_REQUEST:
|
case PKT_REQUEST:
|
||||||
TRACE("got request packet\n");
|
TRACE("got request packet\n");
|
||||||
|
process_request_packet(conn, &hdr->request, msg);
|
||||||
status = process_request_packet(conn, &hdr->request, msg);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PKT_AUTH3:
|
case PKT_AUTH3:
|
||||||
TRACE("got auth3 packet\n");
|
TRACE("got auth3 packet\n");
|
||||||
|
process_auth3_packet(conn, &hdr->common, msg, auth_data, auth_length);
|
||||||
status = process_auth3_packet(conn, &hdr->common, msg, auth_data,
|
|
||||||
auth_length);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("unhandled packet type %u\n", hdr->common.ptype);
|
FIXME("unhandled packet type %u\n", hdr->common.ptype);
|
||||||
|
|
Loading…
Reference in New Issue