Huw Davies : rpcrt4: Calculate size of FC_STRUCT arguments correctly.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 26 07:11:23 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 93fb9d10f5ee7ba960bd4d112383c115418d2293
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=93fb9d10f5ee7ba960bd4d112383c115418d2293
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Jun 23 12:47:34 2006 +0100
rpcrt4: Calculate size of FC_STRUCT arguments correctly.
---
dlls/rpcrt4/ndr_stubless.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c
index 56e8eff..2e56c98 100644
--- a/dlls/rpcrt4/ndr_stubless.c
+++ b/dlls/rpcrt4/ndr_stubless.c
@@ -1019,6 +1019,9 @@ static DWORD calc_arg_size(MIDL_STUB_MES
DWORD size;
switch(*pFormat)
{
+ case RPC_FC_STRUCT:
+ size = *(const WORD*)(pFormat + 2);
+ break;
case RPC_FC_CARRAY:
size = *(const WORD*)(pFormat + 2);
ComputeConformance(pStubMsg, NULL, pFormat + 4, 0);
More information about the wine-cvs
mailing list