From 9f7c4fa03790d6d156bb641850085299966245da Mon Sep 17 00:00:00 2001 From: lwnlad0 Date: Mon, 22 Dec 2025 15:20:10 +0100 Subject: [PATCH] Fix incorrect OS version check condition The condition 'WIN_11' was always evaluated as True (non-empty string) because it was not compared to @OSVersion. --- WhyNotWin11.au3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WhyNotWin11.au3 b/WhyNotWin11.au3 index 6fe334a6..ef237908 100644 --- a/WhyNotWin11.au3 +++ b/WhyNotWin11.au3 @@ -549,7 +549,7 @@ Func Main(ByRef $aResults, ByRef $aExtended, ByRef $aSkips, ByRef $aOutput, $bFU _GDIPlus_Startup() ; Disable Scaling - If @OSVersion = 'WIN_10' Or 'WIN_11' Then DllCall(@SystemDir & "\User32.dll", "bool", "SetProcessDpiAwarenessContext", "HWND", "DPI_AWARENESS_CONTEXT" - 1) + If @OSVersion = 'WIN_10' Or @OSVersion = 'WIN_11' Then DllCall(@SystemDir & "\User32.dll", "bool", "SetProcessDpiAwarenessContext", "HWND", "DPI_AWARENESS_CONTEXT" - 1) Local $bComplete = False