ws2_32: Return SOCKET_ERROR in stubbed WSALookupServiceNext, to prevent apps from looping forever.

This commit is contained in:
Louis Lenders 2010-10-27 23:02:46 +02:00 committed by Alexandre Julliard
parent ae79128978
commit cb65dbf3d8

View File

@ -6333,7 +6333,8 @@ INT WINAPI WSALookupServiceEnd( HANDLE lookup )
INT WINAPI WSALookupServiceNextA( HANDLE lookup, DWORD flags, LPDWORD len, LPWSAQUERYSETA results )
{
FIXME( "(%p 0x%08x %p %p) Stub!\n", lookup, flags, len, results );
return 0;
WSASetLastError(WSA_E_NO_MORE);
return SOCKET_ERROR;
}
/***********************************************************************
@ -6342,7 +6343,8 @@ INT WINAPI WSALookupServiceNextA( HANDLE lookup, DWORD flags, LPDWORD len, LPWSA
INT WINAPI WSALookupServiceNextW( HANDLE lookup, DWORD flags, LPDWORD len, LPWSAQUERYSETW results )
{
FIXME( "(%p 0x%08x %p %p) Stub!\n", lookup, flags, len, results );
return 0;
WSASetLastError(WSA_E_NO_MORE);
return SOCKET_ERROR;
}
/***********************************************************************