Dan Hipschman : widl: Fix NdrConformantArrayUnmarshall calls in generated code.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 16 06:16:00 CDT 2006


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

Author: Dan Hipschman <dsh at linux.ucla.edu>
Date:   Tue Aug 15 18:31:14 2006 -0700

widl: Fix NdrConformantArrayUnmarshall calls in generated code.

---

 tools/widl/proxy.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 3d3e717..642afbe 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -449,8 +449,8 @@ static void unmarshall_copy_arg( var_t *
   expr = get_attrp( arg->attrs, ATTR_SIZEIS );
   if (expr)
   {
-    print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name );
-    fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index );
+    print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name );
+    fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index );
     return;
   }
 
@@ -481,8 +481,8 @@ static void unmarshall_copy_arg( var_t *
   case RPC_FC_C_CSTRING:
   case RPC_FC_C_WSTRING:
   case RPC_FC_CARRAY:
-    print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name );
-    fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index );
+    print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name );
+    fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index );
     break;
 
   case RPC_FC_BOGUS_STRUCT:




More information about the wine-cvs mailing list