Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- python_modules/dissector.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_modules/dissector.py b/python_modules/dissector.py index 5f94e46..76c1de0 100644 --- a/python_modules/dissector.py +++ b/python_modules/dissector.py @@ -431,6 +431,10 @@ def write_switch(writer, container, switch, dest, scope): m = c.member with writer.if_block(check, not first, False) as block: t = m.member_type + if m.has_attr('ws_as'): + type_name = m.attributes['ws_as'][0] + assert(ptypes.type_exists(type_name)) + t = ptypes.lookup_type(type_name) if switch.has_attr("anon"): dest2 = dest else: -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel