Call WinDivertShutdown on shutdown

This commit is contained in:
ValdikSS 2022-01-04 03:14:47 +03:00
parent ee4ce8893c
commit 4a8f7ac4fb
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ static HANDLE init(char *filter, UINT64 flags) {
static int deinit(HANDLE handle) {
if (handle) {
WinDivertShutdown(handle, WINDIVERT_SHUTDOWN_BOTH);
WinDivertClose(handle);
return TRUE;
}