From 1b480066be2e2510571ebb1e8f16a80efac18d11 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 4 Nov 2022 14:01:13 +0100 Subject: [PATCH] fix slow system calls windows kext --- firewall/interception/windowskext/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/interception/windowskext/service.go b/firewall/interception/windowskext/service.go index a2807a59..1e95b294 100644 --- a/firewall/interception/windowskext/service.go +++ b/firewall/interception/windowskext/service.go @@ -74,7 +74,7 @@ retryLoop: func openDriver(filename string) (windows.Handle, error) { u16filename, _ := syscall.UTF16FromString(filename) - handle, err := windows.CreateFile(&u16filename[0], windows.GENERIC_READ|windows.GENERIC_WRITE, 0, nil, windows.OPEN_EXISTING, 0, 0) + handle, err := windows.CreateFile(&u16filename[0], windows.GENERIC_READ|windows.GENERIC_WRITE, 0, nil, windows.OPEN_EXISTING, windows.FILE_ATTRIBUTE_NORMAL|windows.FILE_FLAG_OVERLAPPED, 0) if err != nil { return 0, err }