From 04cf2f480d1fce9cd0bf12de103ca917e1412e6f Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 3 Feb 2012 13:47:17 -0500 Subject: [PATCH] girffi: Fix g_function_info_new_for_address to respect G_VFUNC_THROWS --- girffi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/girffi.c b/girffi.c index e727beabd..d4c728a5c 100644 --- a/girffi.c +++ b/girffi.c @@ -301,8 +301,15 @@ g_function_invoker_new_for_address (gpointer addr, throws = (flags & GI_FUNCTION_THROWS) != 0; } break; - case GI_INFO_TYPE_CALLBACK: case GI_INFO_TYPE_VFUNC: + { + GIVFuncInfoFlags flags; + flags = g_vfunc_info_get_flags ((GIVFuncInfo *)info); + throws = (flags & GI_VFUNC_THROWS) != 0; + } + is_method = FALSE; + break; + case GI_INFO_TYPE_CALLBACK: is_method = TRUE; throws = FALSE; break;