Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: invalid stdio handles should be INVALID_HANDLE_VALUE and not…
Browse files Browse the repository at this point in the history
… NULL
  • Loading branch information
piscisaureus committed Jul 31, 2012
1 parent 109e176 commit 6209fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/process-stdio.c
Expand Up @@ -334,7 +334,7 @@ int uv__stdio_create(uv_loop_t* loop, uv_process_options_t* options,
/* error. */
if (fdopt.data.fd <= 2 && loop->last_err.code == UV_EBADF) {
CHILD_STDIO_CRT_FLAGS(buffer, i) = 0;
CHILD_STDIO_HANDLE(buffer, i) = NULL;
CHILD_STDIO_HANDLE(buffer, i) = INVALID_HANDLE_VALUE;
break;
}
goto error;
Expand Down

0 comments on commit 6209fe5

Please sign in to comment.