windows: invalid stdio handles should be INVALID_HANDLE_VALUE and not NULL

This commit is contained in:
Bert Belder 2012-08-01 01:09:07 +02:00
parent 109e176ae2
commit 6209fe51f0

View File

@ -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;