Rob Shearman : ole32: Fix the calculation of message_state-> prefix_data_len in two places where it would come out negative.
Module: wine Branch: master Commit: 7a5d5c5503362349c21a515c6de4d7752d0c4d62 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a5d5c5503362349c21a515c6d... Author: Rob Shearman <rob(a)codeweavers.com> Date: Tue Jan 2 18:08:49 2007 +0000 ole32: Fix the calculation of message_state->prefix_data_len in two places where it would come out negative. --- dlls/ole32/rpc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index c52f6a3..c45e34e 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -856,7 +856,7 @@ static HRESULT WINAPI ClientRpcChannelBu 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_par 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;
participants (1)
-
Alexandre Julliard