Commit 3387fc90 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Fix handling of void.

parent ef847a03
......@@ -766,8 +766,11 @@ static int encode_type(
{
int next_vt;
while((next_vt = get_type_vt(type->ref)) == 0) {
if(type->ref == NULL) {
next_vt = VT_VOID;
break;
}
type = type->ref;
if(!type) error("encode_type: type->ref is null\n");
}
encode_type(typelib, next_vt, type->ref, &target_type, NULL, NULL, &child_size);
......@@ -1021,8 +1024,11 @@ static int encode_var(
vt = get_var_vt(var);
type = var->type;
while(!vt) {
if(type->ref == NULL) {
vt = VT_VOID;
break;
}
type = type->ref;
if(!type) error("encode_var: type->ref is null\n");
vt = get_type_vt(type);
}
encode_type(typelib, vt, type, encoded_type, width, alignment, decoded_size);
......
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