From 8bda0aff7b4a71dc1a3b6ad784aa42c3026e92e9 Mon Sep 17 00:00:00 2001 From: basil00 Date: Sat, 9 Apr 2022 09:49:45 +0800 Subject: [PATCH] Fix handling of FwpmTransaction*() errors. Fixes #294 --- sys/windivert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/windivert.c b/sys/windivert.c index e23a717..2ca221f 100644 --- a/sys/windivert.c +++ b/sys/windivert.c @@ -122,8 +122,7 @@ typedef enum WINDIVERT_CONTEXT_STATE_OPENING = 0xA0, // Context is opening. WINDIVERT_CONTEXT_STATE_OPEN = 0xB1, // Context is open. WINDIVERT_CONTEXT_STATE_CLOSING = 0xC2, // Context is closing. - WINDIVERT_CONTEXT_STATE_CLOSED = 0xD3, // Context is closed. - WINDIVERT_CONTEXT_STATE_INVALID = 0xE4 // Context is invalid. + WINDIVERT_CONTEXT_STATE_CLOSED = 0xD3 // Context is closed. } context_state_t; struct context_s {