From 97fd4831a804d130d9eff2d464983587f84d60c7 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Wed, 14 Feb 2024 04:16:44 +0700 Subject: [PATCH] Taskbar10: Instant Network and Battery flyouts on versions that don't need them --- ExplorerPatcher/dllmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 6a1e452..2d4eeff 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -4098,7 +4098,7 @@ HRESULT stobject_CoCreateInstanceHook( &dwVal, (LPDWORD)(&dwSize) ); - if (!dwVal) + if (!dwVal && IsWindows11() && !IsWindows11Version22H2Build2134OrHigher()) { if (hCheckForegroundThread) { @@ -4202,7 +4202,7 @@ HRESULT pnidui_CoCreateInstanceHook( } return E_NOINTERFACE; } - else + else if (IsWindows11() && !IsWindows11Version22H2Build1413OrHigher()) { if (hCheckForegroundThread) {