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

@ -144,17 +144,21 @@ unsigned short get_type_vt(type_t *t)
if(match(t->name, "IDispatch"))
return VT_DISPATCH;
return VT_USERDEFINED;
case RPC_FC_ENUM16:
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:
return VT_USERDEFINED;
case 0:
if(t->attrs)
return VT_USERDEFINED;
return 0;
default:
error("get_type_vt: unknown-type: %d\n", t->type);
error("get_type_vt: unknown type: 0x%02x\n", t->type);
}
return 0;
}

View File

@ -879,6 +879,11 @@ static int encode_type(
chat("encode_type: trying to ref not added type\n");
switch(type->type) {
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);
break;
case RPC_FC_IP: