diff options
-rw-r--r-- | atk/atkhyperlinkimpl.c | 5 | ||||
-rw-r--r-- | atk/atkhyperlinkimpl.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/atk/atkhyperlinkimpl.c b/atk/atkhyperlinkimpl.c index b875f5e..73847e5 100644 --- a/atk/atkhyperlinkimpl.c +++ b/atk/atkhyperlinkimpl.c @@ -53,8 +53,8 @@ atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj) { AtkHyperlinkImplIface *iface; - g_return_if_fail (obj != NULL); - g_return_if_fail (ATK_IS_HYPERLINK_IMPL (obj)); + g_return_val_if_fail (obj != NULL, NULL); + g_return_val_if_fail (ATK_IS_HYPERLINK_IMPL (obj), NULL); iface = ATK_HYPERLINK_IMPL_GET_IFACE (obj); @@ -62,5 +62,6 @@ atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj) { (iface->get_hyperlink) (obj); } + return NULL; } diff --git a/atk/atkhyperlinkimpl.h b/atk/atkhyperlinkimpl.h index a91d1ed..b08a1d5 100644 --- a/atk/atkhyperlinkimpl.h +++ b/atk/atkhyperlinkimpl.h @@ -59,7 +59,7 @@ struct _AtkHyperlinkImplIface { GTypeInterface parent; - AtkHyperlink (* get_hyperlink) (AtkHyperlinkImpl *impl); + AtkHyperlink* (* get_hyperlink) (AtkHyperlinkImpl *impl); AtkFunction pad1; }; |