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

Alexandre Julliard julliard at winehq.org
Mon Jun 16 12:37:50 CDT 2014


Module: wine
Branch: master
Commit: 6f47a9d9d83ff53d486cf3c163feb7df7f4bfcd0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f47a9d9d83ff53d486cf3c163feb7df7f4bfcd0

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Sun Jun 15 18:54:54 2014 -0300

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

---

 dlls/ws2_32/socket.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index e31f396..10857dc 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -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] ))




More information about the wine-cvs mailing list