Commit f6081f93 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

iphlpapi: Fix inverted logic in mask comparison.

parent d06b1d59
...@@ -1065,7 +1065,7 @@ DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr, PMIB_IPFORWARDRO ...@@ -1065,7 +1065,7 @@ DWORD WINAPI GetBestRoute(DWORD dwDestAddr, DWORD dwSourceAddr, PMIB_IPFORWARDRO
DWORD numShifts, mask; DWORD numShifts, mask;
for (numShifts = 0, mask = table->table[ndx].dwForwardMask; for (numShifts = 0, mask = table->table[ndx].dwForwardMask;
mask && !(mask & 1); mask >>= 1, numShifts++) mask && mask & 1; mask >>= 1, numShifts++)
; ;
if (numShifts > matchedBits) { if (numShifts > matchedBits) {
matchedBits = numShifts; matchedBits = numShifts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment