rpcrt4: Align the buffer correctly when marshaling and unmarshaling context handles.

This commit is contained in:
Robert Shearman 2006-06-02 20:44:18 +01:00 committed by Alexandre Julliard
parent ec5b3c3ea6
commit da44126395
1 changed files with 8 additions and 2 deletions

View File

@ -4345,7 +4345,10 @@ void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT ContextHandle,
int fCheck)
{
TRACE("(%p, %p, %d): stub\n", pStubMsg, ContextHandle, fCheck);
TRACE("(%p, %p, %d)\n", pStubMsg, ContextHandle, fCheck);
ALIGN_POINTER(pStubMsg->Buffer, 4);
/* FIXME: what does fCheck do? */
NDRCContextMarshall(ContextHandle,
pStubMsg->Buffer);
@ -4360,7 +4363,10 @@ void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT * pContextHandle,
RPC_BINDING_HANDLE BindHandle)
{
TRACE("(%p, %p, %p): stub\n", pStubMsg, pContextHandle, BindHandle);
TRACE("(%p, %p, %p)\n", pStubMsg, pContextHandle, BindHandle);
ALIGN_POINTER(pStubMsg->Buffer, 4);
NDRCContextUnmarshall(pContextHandle,
BindHandle,
pStubMsg->Buffer,