From e3e704bc43cb9851a65763f32b9bba4f4600e237 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 7 Jan 2008 17:09:52 +0000 Subject: [PATCH] ole32: Clear the RPC_FLAGS_VALID_BIT flag from the RPC_MESSAGE ProcNum when shortcutting the RPC runtime. --- dlls/ole32/rpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index fdb49cbbe96..2ee8a9c458a 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -821,6 +821,8 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac { TRACE("Calling apartment thread 0x%08x...\n", message_state->target_tid); + msg->ProcNum &= ~RPC_FLAGS_VALID_BIT; + if (!PostMessageW(message_state->target_hwnd, DM_EXECUTERPC, 0, (LPARAM)&message_state->params)) {