mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:25:38 +00:00
wsock32: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
2cc28bc7ae
commit
19502c65c9
|
@ -115,7 +115,8 @@ INT WINAPI EnumProtocolsA(LPINT protocols, LPVOID buffer, LPDWORD buflen)
|
||||||
{
|
{
|
||||||
WSAPROTOCOL_INFOA *wsabuf;
|
WSAPROTOCOL_INFOA *wsabuf;
|
||||||
PROTOCOL_INFOA *pi = buffer;
|
PROTOCOL_INFOA *pi = buffer;
|
||||||
unsigned int i, string_offset;
|
unsigned int string_offset;
|
||||||
|
INT i;
|
||||||
|
|
||||||
if (!(wsabuf = HeapAlloc(GetProcessHeap(), 0, size))) return SOCKET_ERROR;
|
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;
|
WSAPROTOCOL_INFOW *wsabuf;
|
||||||
PROTOCOL_INFOW *pi = buffer;
|
PROTOCOL_INFOW *pi = buffer;
|
||||||
unsigned int i, string_offset;
|
unsigned int string_offset;
|
||||||
|
INT i;
|
||||||
|
|
||||||
if (!(wsabuf = HeapAlloc(GetProcessHeap(), 0, size))) return SOCKET_ERROR;
|
if (!(wsabuf = HeapAlloc(GetProcessHeap(), 0, size))) return SOCKET_ERROR;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue