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

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: fix typos in process-stdio.c
  • Loading branch information
piscisaureus committed Aug 8, 2012
1 parent dfb6be0 commit 00d2f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/process-stdio.c
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 00d2f22

Please sign in to comment.