diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2018-12-21 17:55:29 +0100 |
---|---|---|
committer | Ralf <ralf@linux1.fritz.box> | 2019-01-05 11:41:58 +0100 |
commit | 0c0056c7d6ccded9962193298edfdcbba1dee579 (patch) | |
tree | 2e70793b682817620920a14327c0cc6505357a6f /dbus | |
parent | 4cae5cb81cf7e6960aabdaa26afc61b4075f1a17 (diff) | |
download | dbus-0c0056c7d6ccded9962193298edfdcbba1dee579.tar.gz |
dbus-spawn-win.c: Simplify logic of return value from call to _dbus_spawn_program()
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-spawn-win.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c index 87255964..ca796055 100644 --- a/dbus/dbus-spawn-win.c +++ b/dbus/dbus-spawn-win.c @@ -674,11 +674,7 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p, } PING(); - if (handle != INVALID_HANDLE_VALUE) - { - sitter->child_handle = handle; - } - else + if (handle == INVALID_HANDLE_VALUE) { sitter->child_handle = NULL; sitter->have_spawn_errno = TRUE; @@ -688,6 +684,8 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p, goto out0; } + sitter->child_handle = handle; + PING(); sitter->thread_handle = (HANDLE) CreateThread (NULL, 0, babysitter, _dbus_babysitter_ref (sitter), 0, &sitter_thread_id); |