widl: Write out the correct FC type if the structure has pointers.

This commit is contained in:
Robert Shearman 2006-02-07 12:30:23 +01:00 committed by Alexandre Julliard
parent 4c8370f97e
commit 8d7fa4c013
1 changed files with 8 additions and 2 deletions

View File

@ -966,7 +966,10 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
else pointer_offset = 0; /* silence warning */
start_offset = *typestring_offset;
if (type->type == RPC_FC_STRUCT)
WRITE_FCTYPE(file, FC_STRUCT, *typestring_offset);
else
WRITE_FCTYPE(file, FC_PSTRUCT, *typestring_offset);
/* alignment */
print_file(file, 2, "0x0,\n");
/* total size */
@ -1013,7 +1016,10 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
else pointer_offset = 0; /* silence warning */
start_offset = *typestring_offset;
if (type->type == RPC_FC_CSTRUCT)
WRITE_FCTYPE(file, FC_CSTRUCT, *typestring_offset);
else
WRITE_FCTYPE(file, FC_CPSTRUCT, *typestring_offset);
/* alignment */
print_file(file, 2, "0x0,\n");
/* total size */