1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

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

This commit is contained in:
Amrsatrio 2024-02-14 04:16:44 +07:00
parent e0b97e2be6
commit 97fd4831a8

View File

@ -4098,7 +4098,7 @@ HRESULT stobject_CoCreateInstanceHook(
&dwVal, &dwVal,
(LPDWORD)(&dwSize) (LPDWORD)(&dwSize)
); );
if (!dwVal) if (!dwVal && IsWindows11() && !IsWindows11Version22H2Build2134OrHigher())
{ {
if (hCheckForegroundThread) if (hCheckForegroundThread)
{ {
@ -4202,7 +4202,7 @@ HRESULT pnidui_CoCreateInstanceHook(
} }
return E_NOINTERFACE; return E_NOINTERFACE;
} }
else else if (IsWindows11() && !IsWindows11Version22H2Build1413OrHigher())
{ {
if (hCheckForegroundThread) if (hCheckForegroundThread)
{ {