Commit 6f47a9d9 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

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

parent e3998e39
......@@ -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] ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment