branch update for HEAD-2003021201
[reactos.git] / lib / ws2_32 / misc / catalog.c
index da89f6e..ef077be 100644 (file)
@@ -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));