rpcrt4: The offset to the complex pointer's description is signed.
Francois Gouget
fgouget at codeweavers.com
Tue Nov 15 16:57:44 CST 2011
---
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:
--
1.7.7.1
More information about the wine-patches
mailing list