Zebediah Figura : rpcrt4: Handle large arrays in EmbeddedComplexSize().

Alexandre Julliard julliard at winehq.org
Mon Nov 19 15:59:37 CST 2018


Module: wine
Branch: master
Commit: c94314085c4e7654f87172d9ad0a2b991d2b51ec
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c94314085c4e7654f87172d9ad0a2b991d2b51ec

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Nov 16 21:58:43 2018 -0600

rpcrt4: Handle large arrays in EmbeddedComplexSize().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rpcrt4/ndr_marshall.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 82cc064..38ead96 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -2765,6 +2765,9 @@ static ULONG EmbeddedComplexSize(MIDL_STUB_MESSAGE *pStubMsg,
   case FC_SMVARRAY:
   case FC_CSTRING:
     return *(const WORD*)&pFormat[2];
+  case FC_LGFARRAY:
+  case FC_LGVARRAY:
+    return *(const ULONG*)&pFormat[2];
   case FC_USER_MARSHAL:
     return *(const WORD*)&pFormat[4];
   case FC_RANGE: {




More information about the wine-cvs mailing list