diff options
Diffstat (limited to 'dbus/dbus-marshal-byteswap.c')
-rw-r--r-- | dbus/dbus-marshal-byteswap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus-marshal-byteswap.c b/dbus/dbus-marshal-byteswap.c index 434d7e4b..7670ec45 100644 --- a/dbus/dbus-marshal-byteswap.c +++ b/dbus/dbus-marshal-byteswap.c @@ -47,6 +47,15 @@ byteswap_body_helper (DBusTypeReader *reader, ++p; break; + case DBUS_TYPE_INT16: + case DBUS_TYPE_UINT16: + { + p = _DBUS_ALIGN_ADDRESS (p, 2); + *((dbus_uint16_t*)p) = DBUS_UINT16_SWAP_LE_BE (*((dbus_uint16_t*)p)); + p += 2; + } + break; + case DBUS_TYPE_BOOLEAN: case DBUS_TYPE_INT32: case DBUS_TYPE_UINT32: |