Skip to content

Commit

Permalink
Switched the CheckPlatform() private method of the Program class to A…
Browse files Browse the repository at this point in the history
…dvancedFeaturesSupported property use.
  • Loading branch information
xvitaly committed Nov 7, 2024
1 parent d7ab213 commit e3576c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kbhelper/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class Program
private static void CheckPlatform()
{
CurrentPlatform Platform = CurrentPlatform.Create();
if (Platform.OS != CurrentPlatform.OSType.Windows)
if (!Platform.AdvancedFeaturesSupported)
{
MessageBox.Show(AppStrings.KB_OSNotSupported, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(ReturnCodes.PlatformNotSupported);
Expand Down

0 comments on commit e3576c1

Please sign in to comment.