ole32: Fix the calculation of message_state->prefix_data_len in two places where it would come out negative.

This commit is contained in:
Rob Shearman 2007-01-02 18:08:49 +00:00 committed by Alexandre Julliard
parent 776f81b3be
commit 7a5d5c5503
1 changed files with 2 additions and 2 deletions

View File

@ -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;