fix for persistence + 1.3.10
This commit is contained in:
@@ -157,7 +157,7 @@ func installStartupFolder(_ string) error {
|
||||
}
|
||||
|
||||
func installRegistry(targetPath string) error {
|
||||
k, err := registry.OpenKey(registry.CURRENT_USER, registryKey,
|
||||
k, _, err := registry.CreateKey(registry.CURRENT_USER, registryKey,
|
||||
registry.QUERY_VALUE|registry.SET_VALUE)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open HKCU Run key: %w", err)
|
||||
|
||||
@@ -397,7 +397,7 @@ func TestInstallRegistry_UpdatesExistingValue(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCleanupOverlordRunValues_RemovesMatchingValues(t *testing.T) {
|
||||
k, err := registry.OpenKey(registry.CURRENT_USER, registryKey,
|
||||
k, _, err := registry.CreateKey(registry.CURRENT_USER, registryKey,
|
||||
registry.QUERY_VALUE|registry.SET_VALUE)
|
||||
if err != nil {
|
||||
t.Fatalf("open registry key: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user