summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-02-02 00:39:10 +0000
committerJames Willcox <jwillcox@gnome.org>2003-02-02 00:39:10 +0000
commitba60374e251cca8fe351b7dd4def595069323885 (patch)
treea98d5492a318758dcf4935b90c528b100e245e90
parentbfe3127d83384659c22478a96dcd7639c3a3dc08 (diff)
2003-02-01 James Willcox <jwillcox@gnome.org>
* bus/driver.c: (bus_driver_handle_own_service): Actually include the service reply code in the message.
-rw-r--r--ChangeLog5
-rw-r--r--bus/driver.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 167e0da0..91bbd04d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-01 James Willcox <jwillcox@gnome.org>
+
+ * bus/driver.c: (bus_driver_handle_own_service):
+ Actually include the service reply code in the message.
+
2003-02-02 Anders Carlsson <andersca@codefactory.se>
* bus/driver.c: (bus_driver_handle_service_exists):
diff --git a/bus/driver.c b/bus/driver.c
index 29adae7e..a99d6516 100644
--- a/bus/driver.c
+++ b/bus/driver.c
@@ -307,6 +307,7 @@ bus_driver_handle_own_service (DBusConnection *connection,
_DBUS_HANDLE_OOM (bus_service_add_owner (service, connection));
bus_service_remove_owner (service, owner);
_dbus_assert (connection == bus_service_get_primary_owner (service));
+ service_reply = DBUS_SERVICE_REPLY_PRIMARY_OWNER;
}
}
}
@@ -323,6 +324,8 @@ bus_driver_handle_own_service (DBusConnection *connection,
service_reply = DBUS_SERVICE_REPLY_PRIMARY_OWNER;
}
+ _DBUS_HANDLE_OOM (dbus_message_append_fields (reply, DBUS_TYPE_UINT32, service_reply, 0));
+
/* Send service reply */
_DBUS_HANDLE_OOM (dbus_connection_send_message (connection, reply, NULL, NULL));
dbus_free (name);