Re: WSCEnumProtocols

2004-10-26 Thread Alexandre Julliard
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

Re: WSCEnumProtocols

2004-10-26 Thread Hans Leidekker
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 ); > > +} > >

Re: WSCEnumProtocols

2004-10-25 Thread Alexandre Julliard
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

Re: WSCEnumProtocols, was _SHExpandEnvironmentStrings() should return input string if no % found to expand?

2004-10-25 Thread Rolf Kalbermatter
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