windows: fix typos in process-stdio.c

This commit is contained in:
Bert Belder 2012-08-08 02:18:53 +02:00
parent dfb6be0e07
commit 00d2f22151

View File

@ -208,7 +208,7 @@ static int uv__duplicate_fd(uv_loop_t* loop, int fd, HANDLE* dup) {
return -1;
}
handle = (HANDLE)_get_osfhandle(fd);
handle = (HANDLE) _get_osfhandle(fd);
return uv__duplicate_handle(loop, handle, dup);
}
@ -355,7 +355,7 @@ int uv__stdio_create(uv_loop_t* loop, uv_process_options_t* options,
break;
case FILE_TYPE_UNKNOWN:
if (GetLastError != 0) {
if (GetLastError() != 0) {
uv__set_sys_error(loop, GetLastError());
CloseHandle(child_handle);
goto error;