Huw Davies : rpcrt4: Handle non-conformant bogus structures.

Alexandre Julliard julliard at winehq.org
Wed Apr 27 12:47:26 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Apr 27 09:53:38 2011 +0100

rpcrt4: Handle non-conformant bogus structures.

---

 dlls/rpcrt4/ndr_stubless.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c
index 82a72aa..9edebf8 100644
--- a/dlls/rpcrt4/ndr_stubless.c
+++ b/dlls/rpcrt4/ndr_stubless.c
@@ -980,6 +980,11 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)
     case RPC_FC_STRUCT:
         size = *(const WORD*)(pFormat + 2);
         break;
+    case RPC_FC_BOGUS_STRUCT:
+        size = *(const WORD*)(pFormat + 2);
+        if(*(const WORD*)(pFormat + 4))
+            FIXME("Unhandled conformant description\n");
+        break;
     case RPC_FC_CARRAY:
         size = *(const WORD*)(pFormat + 2);
         ComputeConformance(pStubMsg, NULL, pFormat + 4, 0);




More information about the wine-cvs mailing list