iphlpapi: Fix inverted logic in mask comparison.

This commit is contained in:
Juan Lang 2010-09-24 18:38:29 -07:00 committed by Alexandre Julliard
parent d06b1d599d
commit f6081f9352
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr, PMIB_IPFORWARDRO
DWORD numShifts, mask;
for (numShifts = 0, mask = table->table[ndx].dwForwardMask;
mask && !(mask & 1); mask >>= 1, numShifts++)
mask && mask & 1; mask >>= 1, numShifts++)
;
if (numShifts > matchedBits) {
matchedBits = numShifts;