[PATCH v2 1/2] ole32: Mask out the flag bit.

Huw Davies huw at codeweavers.com
Fri Sep 2 05:41:04 CDT 2016


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/ole32/rpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index e8bf9bf..ec5dc59 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -664,7 +664,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
     message_state->channel_hook_info.cbSize = sizeof(message_state->channel_hook_info);
     message_state->channel_hook_info.uCausality = COM_CurrentCausalityId();
     message_state->channel_hook_info.dwServerPid = This->server_pid;
-    message_state->channel_hook_info.iMethod = msg->ProcNum;
+    message_state->channel_hook_info.iMethod = msg->ProcNum & ~RPC_FLAGS_VALID_BIT;
     message_state->channel_hook_info.pObject = NULL; /* only present on server-side */
     message_state->target_hwnd = NULL;
     message_state->target_tid = 0;
-- 
2.8.2




More information about the wine-patches mailing list