inetmib1: Avoid idempotent operation in findSupportedQuery function (Clang)

Frédéric Delanoy frederic.delanoy at gmail.com
Sun Oct 2 12:09:47 CDT 2011


indexLow is always 0 at that point
---
 dlls/inetmib1/main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/inetmib1/main.c b/dlls/inetmib1/main.c
index 76741f3..59f6f09 100644
--- a/dlls/inetmib1/main.c
+++ b/dlls/inetmib1/main.c
@@ -1348,8 +1348,7 @@ static struct mibImplementation *findSupportedQuery(UINT *ids, UINT idLength,
 
     if (!idLength)
         return NULL;
-    for (i = (indexLow + indexHigh) / 2; !impl && indexLow <= indexHigh;
-         i = (indexLow + indexHigh) / 2)
+    for (i = indexHigh / 2; !impl && indexLow <= indexHigh; i = (indexLow + indexHigh) / 2)
     {
         INT cmp;
 
-- 
1.7.6.3




More information about the wine-patches mailing list