rpcrt4: Increment the call id field of the request header.

This is necessary for compatibility with MS/RPC servers.
This commit is contained in:
Robert Shearman 2006-05-18 03:39:42 +01:00 committed by Alexandre Julliard
parent c1d00c547b
commit 5067ea70c0
3 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ typedef struct _RpcConnection
USHORT MaxTransmissionSize;
/* The active interface bound to server. */
RPC_SYNTAX_IDENTIFIER ActiveInterface;
USHORT NextCallId;
/* authentication */
CtxtHandle ctx;

View File

@ -666,6 +666,7 @@ RPC_STATUS WINAPI I_RpcSend(PRPC_MESSAGE pMsg)
hdr = RPCRT4_BuildRequestHeader(pMsg->DataRepresentation,
pMsg->BufferLength, pMsg->ProcNum,
&bind->ObjectUuid);
hdr->common.call_id = conn->NextCallId++;
}
status = RPCRT4_Send(conn, hdr, pMsg->Buffer, pMsg->BufferLength);

View File

@ -451,6 +451,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server, LPCS
NewConnection->Endpoint = RPCRT4_strdupA(Endpoint);
NewConnection->Used = Binding;
NewConnection->MaxTransmissionSize = RPC_MAX_PACKET_SIZE;
NewConnection->NextCallId = 1;
TRACE("connection: %p\n", NewConnection);
*Connection = NewConnection;