Francois Gouget : rpcrt4: The offset to the complex pointer' s description is signed.

Alexandre Julliard julliard at winehq.org
Wed Nov 16 12:46:45 CST 2011


Module: wine
Branch: master
Commit: 97ba7aa521c30867ca09906e8e40f0036a28349a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=97ba7aa521c30867ca09906e8e40f0036a28349a

Author: Francois Gouget <fgouget at 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:




More information about the wine-cvs mailing list