From ef0995b1f72bc638c4c0375c346b91fb0c6f17bf Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 28 Nov 2024 11:45:29 +0100 Subject: [PATCH] Define identifier for portmaster-core.dll and make it mandatory --- service/integration/integration_windows.go | 2 +- service/updates/helper/updates.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/service/integration/integration_windows.go b/service/integration/integration_windows.go index 786d6da63..80b1fd74c 100644 --- a/service/integration/integration_windows.go +++ b/service/integration/integration_windows.go @@ -18,7 +18,7 @@ type OSSpecific struct { // Initialize loads the dll and finds all the needed functions from it. func (i *OSIntegration) Initialize() error { // Find path to the dll. - file, err := updates.GetFile("portmaster-core.dll") + file, err := updates.GetPlatformFile("dll/portmaster-core.dll") if err != nil { return err } diff --git a/service/updates/helper/updates.go b/service/updates/helper/updates.go index efae917d0..59001c1c9 100644 --- a/service/updates/helper/updates.go +++ b/service/updates/helper/updates.go @@ -52,6 +52,7 @@ func MandatoryUpdates() (identifiers []string) { identifiers = append( identifiers, PlatformIdentifier("core/portmaster-core.exe"), + PlatformIdentifier("dll/portmaster-core.dll"), PlatformIdentifier("kext/portmaster-kext.sys"), PlatformIdentifier("kext/portmaster-kext.pdb"), PlatformIdentifier("start/portmaster-start.exe"),