mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
rpcrt4: Increment the call id field of the request header.
This is necessary for compatibility with MS/RPC servers.
This commit is contained in:
parent
c1d00c547b
commit
5067ea70c0
@ -37,6 +37,7 @@ typedef struct _RpcConnection
|
||||
USHORT MaxTransmissionSize;
|
||||
/* The active interface bound to server. */
|
||||
RPC_SYNTAX_IDENTIFIER ActiveInterface;
|
||||
USHORT NextCallId;
|
||||
|
||||
/* authentication */
|
||||
CtxtHandle ctx;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user