Add more struct types for TLB generation.

This commit is contained in:
Robert Shearman 2005-06-09 09:45:26 +00:00 committed by Alexandre Julliard
parent a46a159be9
commit 33b09d457f
2 changed files with 11 additions and 2 deletions

View File

@ -148,13 +148,17 @@ unsigned short get_type_vt(type_t *t)
case RPC_FC_ENUM16: case RPC_FC_ENUM16:
case RPC_FC_STRUCT: case RPC_FC_STRUCT:
case RPC_FC_PSTRUCT: case RPC_FC_PSTRUCT:
case RPC_FC_CSTRUCT:
case RPC_FC_CPSTRUCT:
case RPC_FC_CVSTRUCT:
case RPC_FC_BOGUS_STRUCT:
return VT_USERDEFINED; return VT_USERDEFINED;
case 0: case 0:
if(t->attrs) if(t->attrs)
return VT_USERDEFINED; return VT_USERDEFINED;
return 0; return 0;
default: default:
error("get_type_vt: unknown-type: %d\n", t->type); error("get_type_vt: unknown type: 0x%02x\n", t->type);
} }
return 0; return 0;
} }

View File

@ -879,6 +879,11 @@ static int encode_type(
chat("encode_type: trying to ref not added type\n"); chat("encode_type: trying to ref not added type\n");
switch(type->type) { switch(type->type) {
case RPC_FC_STRUCT: case RPC_FC_STRUCT:
case RPC_FC_PSTRUCT:
case RPC_FC_CSTRUCT:
case RPC_FC_CPSTRUCT:
case RPC_FC_CVSTRUCT:
case RPC_FC_BOGUS_STRUCT:
add_structure_typeinfo(typelib, type); add_structure_typeinfo(typelib, type);
break; break;
case RPC_FC_IP: case RPC_FC_IP: