ws2_32: Don't call WS_EnterSingleProtocol[A|W] on unsupported protocols (valgrind).

This commit is contained in:
Bruno Jesus 2014-06-15 18:54:54 -03:00 committed by Alexandre Julliard
parent e3998e3988
commit 6f47a9d9d8

View file

@ -1822,6 +1822,7 @@ static INT WS_EnumProtocols( BOOL unicode, const INT *protocols, LPWSAPROTOCOL_I
for (i = items = 0; protocols[i]; i++)
{
if (!supported_protocol(protocols[i])) continue;
if (unicode)
{
if (WS_EnterSingleProtocolW( protocols[i], &info.w[items] ))