Skip to content

Commit

Permalink
[squash] stronger guard
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed May 15, 2017
1 parent 37cac0a commit 65d02db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Find-VS2017.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private static bool CheckInstance(ISetupInstance2 setupInstance2, ref StringBuil
hasVCTools = true;
else if (id.StartsWith(Win10SDKPrefix)) {
string[] parts = id.Substring(Win10SDKPrefix.Length).Split('.');
if (parts.Length == 2 && parts[1] != "Desktop")
if (parts.Length > 1 && parts[1] != "Desktop")
continue;
Win10SDKVer = Math.Max(Win10SDKVer, UInt32.Parse(parts[0]));
} else if (id == "Microsoft.VisualStudio.Component.Windows81SDK")
Expand Down

0 comments on commit 65d02db

Please sign in to comment.