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

Commit

Permalink
windows: fix issue with SetFileCompletionNotificationModes on 64bit xp
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed Sep 1, 2011
1 parent 22197eb commit 716e8ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/win/tcp.c
Expand Up @@ -75,14 +75,14 @@ static int uv_tcp_set_socket(uv_loop_t* loop, uv_tcp_t* handle,
}

if (pSetFileCompletionNotificationModes) {
if (!pSetFileCompletionNotificationModes((HANDLE) socket,
if (pSetFileCompletionNotificationModes((HANDLE) socket,
FILE_SKIP_SET_EVENT_ON_HANDLE |
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS)) {
handle->flags |= UV_HANDLE_SYNC_BYPASS_IOCP;
} else if (GetLastError() != ERROR_INVALID_FUNCTION) {
uv_set_sys_error(loop, GetLastError());
return -1;
}

handle->flags |= UV_HANDLE_SYNC_BYPASS_IOCP;
}

handle->socket = socket;
Expand Down

0 comments on commit 716e8ea

Please sign in to comment.