ext/libuv/src/win/pipe.c in libuv-3.1.7 vs ext/libuv/src/win/pipe.c in libuv-3.1.8

- old
+ new

@@ -958,10 +958,10 @@ if (handle->flags & UV_HANDLE_PIPE_READ_CANCELABLE) { uv_mutex_lock(m); /* mutex controls *setting* of readfile_thread */ if (DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hThread, - 0, TRUE, DUPLICATE_SAME_ACCESS)) { + 0, FALSE, DUPLICATE_SAME_ACCESS)) { handle->pipe.conn.readfile_thread = hThread; } else { hThread = NULL; } uv_mutex_unlock(m);