[pygobject/invoke-rewrite] [gi] return FALSE when setting errors in the marshaller



commit 762ccb3d2620ea22023446b6ae79f3a111d8b56a
Author: John (J5) Palmieri <johnp redhat com>
Date:   Wed Jan 19 07:49:52 2011 -0500

    [gi] return FALSE when setting errors in the marshaller

 gi/pygi-argument.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 110dcac..d12fa2d 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -2465,9 +2465,10 @@ _pygi_marshal_in_gtype (PyGIInvokeState   *state,
     if (type_ == 0) {
         PyErr_Format (PyExc_TypeError, "Must be gobject.GType, not %s",
                       py_arg->ob_type->tp_name);
+        return FALSE;
     }
 
-    (*arg).v_long = type_;
+    arg->v_long = type_;
     return TRUE;
 }
 gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]