windows: invalid stdio handles should be INVALID_HANDLE_VALUE and not NULL
This commit is contained in:
parent
109e176ae2
commit
6209fe51f0
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user