check reply message of "GetNeighbor"
[platform/upstream/at-spi2-core.git] / atspi / atspi-accessible.c
index 40053f2..752001c 100644 (file)
@@ -617,6 +617,7 @@ atspi_accessible_get_neighbor (AtspiAccessible *root,
     const char *path = are_objects_on_the_same_bus(root, start) ? root_path : "";
     DBusMessage *reply = _atspi_dbus_call_partial (start, atspi_interface_accessible, "GetNeighbor", error, "sii", path, (int)direction, (int)search_mode);
 
+    _ATSPI_DBUS_CHECK_SIG (reply, "(so)y", error, NULL);
     dbus_message_iter_init (reply, &iter);
     AtspiAccessible *ret = _atspi_dbus_return_accessible_from_iter (&iter);