diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-19 16:27:42 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-19 16:28:23 +0200 |
commit | e646529d2e72ccd5b25f88adcf2c37f15c601408 (patch) | |
tree | 29dbfe2292ff56e642b1dd5bbafb0235c8b26f2e /python_modules/demarshal.py | |
parent | 38809803807637336209a89822e12bb5f22148ca (diff) | |
download | spice-e646529d2e72ccd5b25f88adcf2c37f15c601408.tar.gz spice-e646529d2e72ccd5b25f88adcf2c37f15c601408.tar.xz spice-e646529d2e72ccd5b25f88adcf2c37f15c601408.zip |
Don't send CursorHeader if cursor_flags is NONE
Diffstat (limited to 'python_modules/demarshal.py')
-rw-r--r-- | python_modules/demarshal.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py index 4aba7b0b..f259ead4 100644 --- a/python_modules/demarshal.py +++ b/python_modules/demarshal.py @@ -708,7 +708,10 @@ def write_switch_parser(writer, container, switch, dest, scope): if switch.has_end_attr(): dest2 = dest.child_at_end(writer, m.member_type) elif switch.has_attr("anon"): - dest2 = dest + if t.is_struct() and not m.has_attr("to_ptr"): + dest2 = dest.child_sub(m.name) + else: + dest2 = dest else: if t.is_struct(): dest2 = dest.child_sub(switch.name + "." + m.name) |