From 0dc75f3ec8a6724a5c0315003948d1957dffe0f2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 19 Jun 2020 20:04:26 +0100 Subject: WinGui: Prevent Process isolation feature from being enabled on Windows 7 or Windows 8. We are only going to support this on 10 or later. Fixes #2940 --- win/CS/HandBrakeWPF/Services/UserSettingService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/Services') diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 2e29811ba..a28ed12cb 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -28,6 +28,7 @@ namespace HandBrakeWPF.Services using GeneralApplicationException = Exceptions.GeneralApplicationException; using SettingChangedEventArgs = EventArgs.SettingChangedEventArgs; + using SystemInfo = HandBrakeWPF.Utilities.SystemInfo; /// /// The User Setting Service @@ -219,6 +220,10 @@ namespace HandBrakeWPF.Services // Legacy Settings forced Reset. this.userSettings[UserSettingConstants.ScalingMode] = VideoScaler.Lanczos; + if (!SystemInfo.IsWindows10()) + { + this.userSettings[UserSettingConstants.ProcessIsolationEnabled] = false; + } } catch (Exception exc) { @@ -317,7 +322,7 @@ namespace HandBrakeWPF.Services defaults.Add(UserSettingConstants.DefaultPlayer, false); // Experimental - defaults.Add(UserSettingConstants.ProcessIsolationEnabled, true); + defaults.Add(UserSettingConstants.ProcessIsolationEnabled, SystemInfo.IsWindows10() ? true : false); defaults.Add(UserSettingConstants.ProcessIsolationPort, 8037); defaults.Add(UserSettingConstants.SimultaneousEncodes, 1); -- cgit v1.2.3