fuchsia: Fix inverted CHECK condition in migration to fdio_spawn

Bug: crashpad:196
Change-Id: I7465669d7d7ea9e0692fc5e4e8df140b4d388cc1
Reviewed-on: https://chromium-review.googlesource.com/1081288
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
Scott Graham 2018-05-31 12:44:09 -07:00 committed by Commit Bot
parent 1299754179
commit 51ebe79f06

View File

@ -34,7 +34,7 @@ void AddPipe(fdio_spawn_action_t* action, int target_fd, int* fd_out) {
zx_handle_t handle;
uint32_t id;
zx_status_t status = fdio_pipe_half(&handle, &id);
ZX_CHECK(status < 0, status) << "Failed to create pipe.";
ZX_CHECK(status >= 0, status) << "fdio_pipe_half";
action->action = FDIO_SPAWN_ACTION_ADD_HANDLE;
action->h.id = PA_HND(PA_HND_TYPE(id), target_fd);
action->h.handle = handle;