fix(windows): disable mitigation for Windows 10 build 19597 and later

Fixes #1285.

If running Windows 10 19597 or later, the underlying issue has
been addressed, so disable the mitigation for new installs of
the keyboard. Does not attempt to change the language code if
the keyboard is already installed.
This commit is contained in:
Marc Durdin 2020-12-21 08:56:34 +11:00
parent e9723251fb
commit 227e023cdd

View file

@ -98,7 +98,10 @@ class function TMitigateWin10_1803.IsMitigationRequired(BCP47Tag: string;
var
I: Integer;
begin
if not IsWindows10_1803_OrGreater then
if not IsWindows10_OrGreater_Build(WINDOWS_10_BUILDNUMBER_WithFailure) then
Exit(False);
if IsWindows10_OrGreater_Build(WINDOWS_10_BUILDNUMBER_Fixed) then
Exit(False);
// We only want to look at the primary language tag for comparison