Skip to content

Commit

Permalink
Merge pull request #497 from iouri-s/patch-1
Browse files Browse the repository at this point in the history
Deal with missing HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
  • Loading branch information
anaisbetts committed Dec 9, 2015
2 parents ceb12b8 + a95b985 commit 2d3a0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Squirrel/TrayHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public unsafe void RemoveDeadEntries(List<string> executablesInPackage, string r
return;
}

if (iconStreamData.Length < 20) return;
if (iconStreamData == null || iconStreamData.Length < 20) return;
var toKeep = new List<byte[]>();
var header = default(IconStreamsHeader);

Expand Down

0 comments on commit 2d3a0f7

Please sign in to comment.