Skip to content

Commit

Permalink
SA5001
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Feb 1, 2024
1 parent be86462 commit 3c9247a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/osquery/table/program_icons_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ func generateUninstallerProgramIcons() []map[string]string {
for key, paths := range uninstallRegPaths {
for _, path := range paths {
key, err := registry.OpenKey(key, path, registry.READ)
defer key.Close()
if err != nil {
continue
}
defer key.Close()

iconPath, _, err := key.GetStringValue("DisplayIcon")
icon, err := parseIcoFile(iconPath)
Expand Down Expand Up @@ -93,10 +93,10 @@ func generateInstallersProgramIcons() []map[string]string {
for key, paths := range productRegPaths {
for _, path := range paths {
key, err := registry.OpenKey(key, path, registry.READ)
defer key.Close()
if err != nil {
continue
}
defer key.Close()

iconPath, _, err := key.GetStringValue("ProductIcon")
icon, err := parseIcoFile(iconPath)
Expand Down

0 comments on commit 3c9247a

Please sign in to comment.