1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-31 12:03:50 +01:00

Added check to enable legacy menus only on newer builds that have

the new menus as well.
This commit is contained in:
Valentin Radu 2021-08-31 03:24:58 +03:00
parent 887b84c7f9
commit ea42afb5be

View File

@ -2724,7 +2724,12 @@ __declspec(dllexport) DWORD WINAPI main(
0,
wszSettingsPath
);
if (!bAllowImmersiveContextMenus)
if (!bAllowImmersiveContextMenus &&
rovi.dwMajorVersion >= 10 &&
rovi.dwMinorVersion >= 0 &&
rovi.dwBuildNumber >= 22000 &&
ubr >= 65
)
{
rv = funchook_prepare(
funchook,