From 53845fa8a9b0871ac777ffd74154be69e18da1ed Mon Sep 17 00:00:00 2001 From: basil00 Date: Sat, 13 Jan 2018 08:08:37 +0800 Subject: [PATCH] Fix #107 This issue was caused by an uninitialized variable inside the driver. It sometimes resulted in a junk error code returned for the "false" filter. --- sys/windivert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/windivert.c b/sys/windivert.c index 1948ec8..49528a4 100644 --- a/sys/windivert.c +++ b/sys/windivert.c @@ -940,7 +940,7 @@ static NTSTATUS windivert_install_callouts(context_t context, UINT8 layer, { UINT8 i, j; layer_t layers[WINDIVERT_CONTEXT_MAXLAYERS]; - NTSTATUS status; + NTSTATUS status = STATUS_SUCCESS; i = 0; switch (layer)