X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fws2_32%2Fmisc%2Fcatalog.c;fp=lib%2Fws2_32%2Fmisc%2Fcatalog.c;h=ef077be124f0a6535f0f572be1fb0c897c74487c;hp=da89f6e15dba013a447dd4a0998caf2a27c79545;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3 diff --git a/lib/ws2_32/misc/catalog.c b/lib/ws2_32/misc/catalog.c index da89f6e..ef077be 100644 --- a/lib/ws2_32/misc/catalog.c +++ b/lib/ws2_32/misc/catalog.c @@ -131,10 +131,10 @@ PCATALOG_ENTRY LocateProvider( ListEntry); for (i = 0; i < Provider->Mapping->Rows; i++) { - if ((lpProtocolInfo->iAddressFamily == Provider->Mapping->Mapping[i].AddressFamily) && - (lpProtocolInfo->iSocketType == Provider->Mapping->Mapping[i].SocketType) && - ((lpProtocolInfo->iProtocol == Provider->Mapping->Mapping[i].Protocol) || - (lpProtocolInfo->iSocketType == SOCK_RAW))) { + if ((lpProtocolInfo->iAddressFamily == (INT) Provider->Mapping->Mapping[i].AddressFamily) && + (lpProtocolInfo->iSocketType == (INT) Provider->Mapping->Mapping[i].SocketType) && + ((lpProtocolInfo->iProtocol == (INT) Provider->Mapping->Mapping[i].Protocol) || + (lpProtocolInfo->iSocketType == SOCK_RAW))) { //LeaveCriticalSection(&CatalogLock); WS_DbgPrint(MID_TRACE, ("Returning provider at (0x%X).\n", Provider)); return Provider; @@ -155,7 +155,6 @@ PCATALOG_ENTRY LocateProviderById( { PLIST_ENTRY CurrentEntry; PCATALOG_ENTRY Provider; - UINT i; WS_DbgPrint(MAX_TRACE, ("CatalogEntryId (%d).\n", CatalogEntryId));