Commit b17d1c14 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Fix NdrConformantArrayUnmarshall calls in generated code.

parent 16d4e712
...@@ -449,8 +449,8 @@ static void unmarshall_copy_arg( var_t *arg ) ...@@ -449,8 +449,8 @@ static void unmarshall_copy_arg( var_t *arg )
expr = get_attrp( arg->attrs, ATTR_SIZEIS ); expr = get_attrp( arg->attrs, ATTR_SIZEIS );
if (expr) if (expr)
{ {
print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name ); print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name );
fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index ); fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index );
return; return;
} }
...@@ -481,8 +481,8 @@ static void unmarshall_copy_arg( var_t *arg ) ...@@ -481,8 +481,8 @@ static void unmarshall_copy_arg( var_t *arg )
case RPC_FC_C_CSTRING: case RPC_FC_C_CSTRING:
case RPC_FC_C_WSTRING: case RPC_FC_C_WSTRING:
case RPC_FC_CARRAY: case RPC_FC_CARRAY:
print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char*)%s, ", arg->name ); print_proxy( "NdrConformantArrayUnmarshall( &_StubMsg, (unsigned char**)&%s, ", arg->name );
fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d]);\n", index ); fprintf(proxy, "&__MIDL_TypeFormatString.Format[%d], 0);\n", index );
break; break;
case RPC_FC_BOGUS_STRUCT: case RPC_FC_BOGUS_STRUCT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment