Commit 27d7445d authored by jan.koester's avatar jan.koester
Browse files

fixed pointer bug

parent 66c1f702
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ void netplus::tcp::accept(socket *csock){
    ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen;

    csock->_Socket=::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr, 
        (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0);
        (LPINT)&((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0);
    if(csock->_Socket==SOCKET_ERROR){
        int etype=NetException::Error;
        if(GetLastError() ==WSA_IO_PENDING)
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ void netplus::udp::accept(socket* csock) {
    ((struct addrinfo *)(csock->_SocketInfo))->ai_addrlen=((struct addrinfo *)(_SocketInfo))->ai_addrlen;

    csock->_Socket = ::WSAAccept(_Socket, ((struct addrinfo*)csock->_SocketInfo)->ai_addr,
        (LPINT)((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0);
        (LPINT)&((struct addrinfo*)csock->_SocketInfo)->ai_addrlen, nullptr, 0);
    if (csock->_Socket == SOCKET_ERROR) {
        int etype = NetException::Error;
        if (GetLastError() == WSA_IO_PENDING)