make initializing overlapped-struct obvious for preventing a ciritical bug

pull/1420/head
zeliard 10 years ago
parent 1685d773ef
commit 3874ad0833
  1. 2
      src/core/iomgr/tcp_windows.c

@ -289,7 +289,7 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep,
return ret;
}
memset(&socket->write_info, 0, sizeof(OVERLAPPED));
memset(&socket->write_info.overlapped, 0, sizeof(OVERLAPPED));
status = WSASend(socket->socket, buffers, tcp->write_slices.count,
&bytes_sent, 0, &socket->write_info.overlapped, NULL);
if (allocated) gpr_free(allocated);

Loading…
Cancel
Save