Hans Leidekker <[EMAIL PROTECTED]> writes:
> On Tuesday 26 October 2004 02:51, Alexandre Julliard wrote:
>> You cannot cast a WSAPROTOCOL_INFOA* to a WSAPROTOCOL_INFOW*, the
>> structures don't have the same size.
>
> Not generally no, but here I can because the size difference comes
> from the la
On Tuesday 26 October 2004 02:51, Alexandre Julliard wrote:
> > +INT WINAPI WSAEnumProtocolsA( LPINT lpiProtocols, LPWSAPROTOCOL_INFOA lpBuffer,
> > LPDWORD lpdwLength )
> > +{
> > + return WINSOCK_EnumProtocols( lpiProtocols, (WSAPROTOCOL_INFOW *)lpBuffer,
> > lpdwLength, FALSE );
> > +}
>
>
Hans Leidekker <[EMAIL PROTECTED]> writes:
> +INT WINAPI WSAEnumProtocolsA( LPINT lpiProtocols, LPWSAPROTOCOL_INFOA lpBuffer,
> LPDWORD lpdwLength )
> +{
> + return WINSOCK_EnumProtocols( lpiProtocols, (WSAPROTOCOL_INFOW *)lpBuffer,
> lpdwLength, FALSE );
> +}
You cannot cast a WSAPROTOCOL_IN
tion and finds out that it needs and A and a W...which is why I
>didn't want my patch committed.
This would be indeed the real problem if it was the case, but (from my SDK headers):
int WSPAPI WSCEnumProtocols(IN LPINT lpiProtocols,
OUT LPWSAPROTOCOL_INFOW lpPro