]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a couple code warnings.
authorsr55 <sr55.hb@outlook.com>
Tue, 27 Jun 2017 16:21:38 +0000 (17:21 +0100)
committersr55 <sr55.hb@outlook.com>
Tue, 27 Jun 2017 16:21:38 +0000 (17:21 +0100)
win/CS/HandBrakeWPF/App.xaml.cs

index c7ce7d3f5d407ec49aebeb409e727fada3d34646..45b2fa31abd3b23f9afdabe564110e57640b0fc5 100644 (file)
@@ -51,8 +51,7 @@ namespace HandBrakeWPF
         {\r
             // We don't support Windows XP / 2003 / 2003 R2 / Vista / 2008\r
             OperatingSystem os = Environment.OSVersion;\r
-            if ((os.Platform == PlatformID.Win32NT) && (os.Version.Major == 5) ||\r
-                (os.Platform == PlatformID.Win32NT) && (os.Version.Major == 6 && os.Version.Minor < 1))\r
+            if (((os.Platform == PlatformID.Win32NT) && (os.Version.Major == 5)) || ((os.Platform == PlatformID.Win32NT) && (os.Version.Major == 6 && os.Version.Minor < 1)))\r
             {\r
                 MessageBox.Show("HandBrake requires Windows 7 or later to run. Version 0.9.9 (XP) and 0.10.5 (Vista) was the last version to support these versions.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);\r
                 Application.Current.Shutdown();\r