Module: wine Branch: master Commit: 97ba7aa521c30867ca09906e8e40f0036a28349a URL: http://source.winehq.org/git/wine.git/?a=commit;h=97ba7aa521c30867ca09906e8e...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Nov 15 23:57:44 2011 +0100
rpcrt4: The offset to the complex pointer's description is signed.
---
dlls/rpcrt4/ndr_stubless.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index 5eb699e..fdde3a4 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -156,7 +156,7 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat) size = sizeof(void *); break; } - size = calc_arg_size(pStubMsg, &pFormat[2] + *(WORD *)&pFormat[2]); + size = calc_arg_size(pStubMsg, &pFormat[2] + *(const SHORT*)&pFormat[2]); break; case RPC_FC_STRUCT: case RPC_FC_PSTRUCT: