Commit 7a5d5c55 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Fix the calculation of message_state->prefix_data_len in two places where…

ole32: Fix the calculation of message_state->prefix_data_len in two places where it would come out negative.
parent 776f81b3
......@@ -856,7 +856,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac
if (FAILED(hr2))
hr = hr2;
message_state->prefix_data_len = original_buffer - (char *)msg->Buffer;
message_state->prefix_data_len = (char *)msg->Buffer - original_buffer;
msg->BufferLength -= message_state->prefix_data_len;
}
else
......@@ -1237,7 +1237,7 @@ void RPC_ExecuteCall(struct dispatch_params *params)
goto exit;
}
message_state->prefix_data_len = original_buffer - (char *)msg->Buffer;
message_state->prefix_data_len = (char *)msg->Buffer - original_buffer;
message_state->binding_handle = msg->Handle;
message_state->channel_hook_info.iid = params->iid;
......
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