From 00d2f22151d5812a58cbae3df8b12e0a52f70e97 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 8 Aug 2012 02:18:53 +0200 Subject: [PATCH] windows: fix typos in process-stdio.c --- src/win/process-stdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/process-stdio.c b/src/win/process-stdio.c index 2fe2b232..e1b3caf4 100644 --- a/src/win/process-stdio.c +++ b/src/win/process-stdio.c @@ -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;