From 6ac77a644be160b54704bcbbffefe5895d5fc2ff Mon Sep 17 00:00:00 2001 From: basil00 Date: Fri, 13 Dec 2013 17:09:37 +0800 Subject: [PATCH] - Fix some bugs introduced by recent commits. --- dll/windivert.c | 4 ++-- sys/sources | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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=\