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



commit cbcc85fda633a1c2ef44b47207e5aeb8bb4f9481
Author: Mike Gorse <mgorse suse com>
Date:   Tue Apr 10 15:09:32 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]