[at-spi2-core/gnome-3-4] Fix GError sent when receiving a reply of the wrong type



commit a4a180f923e5e789230212269264693b8a71d009
Author: Mike Gorse <mgorse suse com>
Date:   Mon Apr 16 14:03:23 2012 -0500

        Fix GError sent when receiving a reply of the wrong type
    
        When a method reply of the wrong type was received, the parameters were
        still sent backwards when formatting the GError.

 dbind/dbind.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dbind/dbind.c b/dbind/dbind.c
index eabf7cd..f216c52 100644
--- a/dbind/dbind.c
+++ b/dbind/dbind.c
@@ -160,8 +160,8 @@ dbind_method_call_reentrant_va (DBusConnection *cnx,
 	    if (opt_error)
 	        dbus_set_error (opt_error, DBUS_ERROR_INVALID_ARGS,
 		                "Call to \"%s\" returned signature %s; expected %s",
-		                method, p + 2,
-		                dbus_message_get_signature (reply));
+		                method, dbus_message_get_signature (reply),
+                                p + 2);
 	    goto out;
 	}
         p = arg_types;



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