From 8340a04bd6c50363b61f82da2a1b4df8ba6db14f Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Mon, 31 Aug 2026 14:43:06 +0200 Subject: [PATCH] win32: Use parentheses to be independent of and/or evaluation order The Version.NTPlatform shall be true for every evaluation of the if branch. --- win32/installer/zoitechat.iss.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/installer/zoitechat.iss.tt b/win32/installer/zoitechat.iss.tt index beaab87f..406626d0 100644 --- a/win32/installer/zoitechat.iss.tt +++ b/win32/installer/zoitechat.iss.tt @@ -324,7 +324,7 @@ begin // Enchant's WinSpell provider uses the built-in spell checker on Windows 8+. // Downloaded dictionaries for other providers are retained only as a Windows 7 fallback. - if Version.NTPlatform and (Version.Major > 6) or ((Version.Major = 6) and (Version.Minor > 1)) then + if Version.NTPlatform and ((Version.Major > 6) or ((Version.Major = 6) and (Version.Minor > 1))) then Result := True else Result := DirExists(ExpandConstant('{localappdata}') + '\enchant-2\myspell');