Andrew Talbot : wsock32: Avoid signed-unsigned integer comparisons.

Alexandre Julliard julliard at winehq.org
Fri Mar 8 14:00:36 CST 2013


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Thu Mar  7 22:22:36 2013 +0000

wsock32: Avoid signed-unsigned integer comparisons.

---

 dlls/wsock32/protocol.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/wsock32/protocol.c b/dlls/wsock32/protocol.c
index 9482887..f398d6a 100644
--- a/dlls/wsock32/protocol.c
+++ b/dlls/wsock32/protocol.c
@@ -115,7 +115,8 @@ INT WINAPI EnumProtocolsA(LPINT protocols, LPVOID buffer, LPDWORD buflen)
         {
             WSAPROTOCOL_INFOA *wsabuf;
             PROTOCOL_INFOA *pi = buffer;
-            unsigned int i, string_offset;
+            unsigned int string_offset;
+            INT i;
 
             if (!(wsabuf = HeapAlloc(GetProcessHeap(), 0, size))) return SOCKET_ERROR;
 
@@ -169,7 +170,8 @@ INT WINAPI EnumProtocolsW(LPINT protocols, LPVOID buffer, LPDWORD buflen)
         {
             WSAPROTOCOL_INFOW *wsabuf;
             PROTOCOL_INFOW *pi = buffer;
-            unsigned int i, string_offset;
+            unsigned int string_offset;
+            INT i;
 
             if (!(wsabuf = HeapAlloc(GetProcessHeap(), 0, size))) return SOCKET_ERROR;
 




More information about the wine-cvs mailing list