Commit da441263 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

parent ec5b3c3e
...@@ -4345,7 +4345,10 @@ void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -4345,7 +4345,10 @@ void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT ContextHandle, NDR_CCONTEXT ContextHandle,
int fCheck) 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? */ /* FIXME: what does fCheck do? */
NDRCContextMarshall(ContextHandle, NDRCContextMarshall(ContextHandle,
pStubMsg->Buffer); pStubMsg->Buffer);
...@@ -4360,7 +4363,10 @@ void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -4360,7 +4363,10 @@ void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT * pContextHandle, NDR_CCONTEXT * pContextHandle,
RPC_BINDING_HANDLE BindHandle) 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, NDRCContextUnmarshall(pContextHandle,
BindHandle, BindHandle,
pStubMsg->Buffer, pStubMsg->Buffer,
......
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