Fix Windows lint: handle close error and exclude vendored WFP types from unused

This commit is contained in:
Viktor Liu
2026-05-05 18:25:53 +02:00
parent 0571eeaba0
commit 7fd16666e3
2 changed files with 4 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ func installFilters(cfg installConfig) (session uintptr, err error) {
base, err := registerBaseObjects(session)
if err != nil {
fwpmEngineClose0(session)
_ = fwpmEngineClose0(session)
return 0, fmt.Errorf("register base objects: %w", err)
}