<rdar://problem/7265273> Bonjour for Windows doesn't work on Windows 2000
authorsherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 30 Sep 2009 19:04:03 +0000 (19:04 +0000)
committersherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 30 Sep 2009 19:04:03 +0000 (19:04 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6726 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSWindows/mDNSWin32.c

index a3097fe..1e7b835 100755 (executable)
@@ -3025,7 +3025,9 @@ mDNSlocal OSStatus UDPBeginRecv( UDPSocket * sock )
        }
        else
        {
-               err = WSARecvFrom( sock->fd, &sock->wbuf, 1, 0, &size, ( LPSOCKADDR ) &sock->srcAddr, &sock->srcAddrLen, &sock->overlapped, ( LPWSAOVERLAPPED_COMPLETION_ROUTINE ) UDPEndRecv );
+               DWORD flags = 0;
+
+               err = WSARecvFrom( sock->fd, &sock->wbuf, 1, NULL, &flags, ( LPSOCKADDR ) &sock->srcAddr, &sock->srcAddrLen, &sock->overlapped, ( LPWSAOVERLAPPED_COMPLETION_ROUTINE ) UDPEndRecv );
                err = translate_errno( ( err == 0 ) || ( WSAGetLastError() == WSA_IO_PENDING ), ( OSStatus ) WSAGetLastError(), kUnknownErr );
                require_noerr( err, exit );
        }