- Accessibility_BoundingBox *bounds = (Accessibility_BoundingBox *) details->any_data._value;
- rect->x = bounds->x;
- rect->y = bounds->y;
- rect->width = bounds->width;
- rect->height = bounds->height;
- return rect;
+ if (CORBA_TypeCode_equal (details->any_data._type, TC_Accessibility_BoundingBox, cspi_ev()))
+ {
+ Accessibility_BoundingBox *bounds = (Accessibility_BoundingBox *) details->any_data._value;
+ rect->x = bounds->x;
+ rect->y = bounds->y;
+ rect->width = bounds->width;
+ rect->height = bounds->height;
+ return rect;
+ }
+ else
+ return NULL;