Browse Source

Taskbar10: Instant Network and Battery flyouts on versions that don't need them

pull/2940/merge
Amrsatrio 2 years ago
parent
commit
97fd4831a8
  1. 4
      ExplorerPatcher/dllmain.c

4
ExplorerPatcher/dllmain.c

@ -4098,7 +4098,7 @@ HRESULT stobject_CoCreateInstanceHook( @@ -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( @@ -4202,7 +4202,7 @@ HRESULT pnidui_CoCreateInstanceHook(
}
return E_NOINTERFACE;
}
else
else if (IsWindows11() && !IsWindows11Version22H2Build1413OrHigher())
{
if (hCheckForegroundThread)
{

Loading…
Cancel
Save