Commit c28f3355 authored by Samuel Thibault's avatar Samuel Thibault Committed by Mike Gorse

Don't crash when trying to set an invalid state

https://bugzilla.gnome.org/show_bug.cgi?id=757915
parent 29300424
......@@ -102,11 +102,11 @@ atspi_state_set_set_by_name (AtspiStateSet *set, const gchar *name, gboolean ena
{
g_warning ("AT-SPI: Attempt to set unknown state '%s'", name);
}
if (enabled)
set->states |= ((gint64)1 << value->value);
else
set->states &= ~((gint64)1 << value->value);
if (enabled)
set->states |= ((gint64)1 << value->value);
else
set->states &= ~((gint64)1 << value->value);
g_type_class_unref (type_class);
}
......
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