Skip to content

Commit

Permalink
Taskbar10: Instant Network and Battery flyouts on versions that don't…
Browse files Browse the repository at this point in the history
… need them
  • Loading branch information
Amrsatrio committed Feb 13, 2024
1 parent e0b97e2 commit 97fd483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,7 @@ HRESULT stobject_CoCreateInstanceHook(
&dwVal,
(LPDWORD)(&dwSize)
);
if (!dwVal)
if (!dwVal && IsWindows11() && !IsWindows11Version22H2Build2134OrHigher())
{
if (hCheckForegroundThread)
{
Expand Down Expand Up @@ -4202,7 +4202,7 @@ HRESULT pnidui_CoCreateInstanceHook(
}
return E_NOINTERFACE;
}
else
else if (IsWindows11() && !IsWindows11Version22H2Build1413OrHigher())
{
if (hCheckForegroundThread)
{
Expand Down

0 comments on commit 97fd483

Please sign in to comment.