summaryrefslogtreecommitdiff
path: root/dbus/dbus-sysdeps-win.h
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2021-11-24 09:49:47 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2021-11-29 13:07:04 +0100
commit0eef54ea1b00c8e078da7294b8466a1ff7ae8fea (patch)
tree9ead8d3f61ca6002bb051613ede7292b4dac0723 /dbus/dbus-sysdeps-win.h
parentba1dc32667ac4bf892d4219ec8e3a5a712d008db (diff)
downloaddbus-0eef54ea1b00c8e078da7294b8466a1ff7ae8fea.tar.gz
_dbus_spawn_program(): Add additional parameter to return error
By specifying an error instance via the additional parameter, errors that occur in it are transported to the caller in a coordinated manner. This eliminates the need to query GetLastError() outside the function, which can return an incorrect value if the implementation changes.
Diffstat (limited to 'dbus/dbus-sysdeps-win.h')
-rw-r--r--dbus/dbus-sysdeps-win.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.h b/dbus/dbus-sysdeps-win.h
index d63fb4f1..52db915b 100644
--- a/dbus/dbus-sysdeps-win.h
+++ b/dbus/dbus-sysdeps-win.h
@@ -93,7 +93,8 @@ dbus_bool_t _dbus_getsid(char **sid, dbus_pid_t process_id);
HANDLE _dbus_spawn_program (const char *name,
char **argv,
char **envp,
- dbus_bool_t inherit_handles);
+ dbus_bool_t inherit_handles,
+ DBusError *error);
DBUS_PRIVATE_EXPORT
void _dbus_win_set_error_from_last_error (DBusError *error,