Module: wine Branch: master Commit: e0a60312d1aaa2e4e38d40c7cd32f27c4267c98c URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0a60312d1aaa2e4e38d40c7cd...
Author: Huw Davies huw@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);