uv: Upgrade to 5462dab

This commit is contained in:
isaacs 2013-03-09 18:34:59 -08:00
parent 12713c3bb7
commit 21a99664ae
2 changed files with 3 additions and 2 deletions

View File

@ -915,7 +915,7 @@ static void uv_pipe_queue_read(uv_loop_t* loop, uv_pipe_t* handle) {
} else { } else {
memset(&req->overlapped, 0, sizeof(req->overlapped)); memset(&req->overlapped, 0, sizeof(req->overlapped));
if (handle->flags & UV_HANDLE_EMULATE_IOCP) { if (handle->flags & UV_HANDLE_EMULATE_IOCP) {
req->overlapped.hEvent = (HANDLE) ((DWORD) req->event_handle | 1); req->overlapped.hEvent = (HANDLE) ((uintptr_t) req->event_handle | 1);
} }
/* Do 0-read */ /* Do 0-read */

View File

@ -113,7 +113,8 @@ static int uv_tcp_set_socket(uv_loop_t* loop, uv_tcp_t* handle,
non_ifs_lsp = uv_tcp_non_ifs_lsp_ipv4; non_ifs_lsp = uv_tcp_non_ifs_lsp_ipv4;
} }
if (pSetFileCompletionNotificationModes && !non_ifs_lsp) { if (pSetFileCompletionNotificationModes &&
!(handle->flags & UV_HANDLE_EMULATE_IOCP) && !non_ifs_lsp) {
if (pSetFileCompletionNotificationModes((HANDLE) socket, if (pSetFileCompletionNotificationModes((HANDLE) socket,
FILE_SKIP_SET_EVENT_ON_HANDLE | FILE_SKIP_SET_EVENT_ON_HANDLE |
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS)) { FILE_SKIP_COMPLETION_PORT_ON_SUCCESS)) {