diff --git a/dll/windivert.c b/dll/windivert.c index 08ea614..1e000bd 100644 --- a/dll/windivert.c +++ b/dll/windivert.c @@ -759,11 +759,11 @@ static PFILTER_TOKEN_NAME WinDivertTokenLookup( { mid = (lo + hi) / 2; cmp = strcmp(token_names[mid].name, name); - if (cmp > 0) + if (cmp < 0) { lo = mid+1; } - else if (cmp < 0) + else if (cmp > 0) { hi = mid-1; } diff --git a/sys/sources b/sys/sources index 267eadf..af59a72 100644 --- a/sys/sources +++ b/sys/sources @@ -22,7 +22,7 @@ CPU=$(_BUILDARCH) BITS=64 !ENDIF -TARGETNAME=WinDivert +TARGETNAME=WinDivert$(BITS) TARGETTYPE=DRIVER TARGETPATH=..\install\WDDK TARGETLIBS=\