widl: Generate NdrNonConformatString* calls for non-conformant string types.

This commit is contained in:
Robert Shearman 2006-01-24 11:10:08 +01:00 committed by Alexandre Julliard
parent a6c6e1d032
commit 69551fdf74
1 changed files with 16 additions and 6 deletions

View File

@ -833,6 +833,11 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
if (is_string_type(var->attrs, var->ptr_level, var->array))
{
if (var->array && var->array->is_const)
print_file(file, indent,
"NdrNonConformantStringMarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d]);\n",
var->name, *type_offset);
else
print_file(file, indent,
"NdrConformantStringMarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d]);\n",
var->name, *type_offset);
@ -1018,6 +1023,11 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
if (is_string_type(var->attrs, var->ptr_level, var->array))
{
if (var->array && var->array->is_const)
print_file(file, indent,
"NdrNonConformantStringUnmarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d], 0);\n",
var->name, *type_offset);
else
print_file(file, indent,
"NdrConformantStringUnmarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d], 0);\n",
var->name, *type_offset);