From ea42afb5be85ce57413fca3316c5cb82b8d2571a Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Tue, 31 Aug 2021 03:24:58 +0300 Subject: [PATCH] Added check to enable legacy menus only on newer builds that have the new menus as well. --- ExplorerPatcher/dllmain.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 9c617c8..4e84991 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -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,