Set the DBusError
authorTor Lillqvist <tml@iki.fi>
Tue, 27 Oct 2009 12:13:37 +0000 (14:13 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 1 Dec 2009 09:28:09 +0000 (10:28 +0100)
Put the correct error code and a relevant message into the DBusError
in _dbus_unix_user_is_at_console().

dbus/dbus-sysdeps-util-win.c

index 81ce82d..8b9fe7a 100644 (file)
@@ -837,6 +837,8 @@ dbus_bool_t
 _dbus_unix_user_is_at_console (dbus_uid_t         uid,
                                DBusError         *error)
 {
+  dbus_set_error (error, DBUS_ERROR_NOT_SUPPORTED,
+                  "UNIX user IDs not supported on Windows\n");
   return FALSE;
 }