sysdeps: Return an error for _dbus_command_for_pid on Windows

If a function returns boolean for success/error, and returns a
DBusError, then it should set the DBusError if and only if it
returns FALSE.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2018-10-25 16:47:18 +01:00
parent d70040d8d2
commit 47fc3ed2a9

View file

@ -1399,7 +1399,8 @@ _dbus_command_for_pid (unsigned long pid,
int max_len,
DBusError *error)
{
// FIXME
dbus_set_error (error, DBUS_ERROR_NOT_SUPPORTED,
"_dbus_command_for_pid() not implemented on Windows");
return FALSE;
}