From 3a1b8b829658dbfb0c9e15f6ed2d46e17e4d1e81 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sat, 16 Dec 2023 02:29:54 +0700 Subject: [PATCH] File Explorer: Fixed crashes when using Windows 7/10 control interface on OS builds 22635.2915+ --- ExplorerPatcher/dllmain.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 2ecedfb..59cbaed 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -9734,11 +9734,15 @@ int RtlQueryFeatureConfigurationHook(UINT32 featureId, int sectionType, INT64* c || dwFileExplorerCommandUI == 3) // Windows 11 Command Bar (no Tabs, classic Address Bar) <-- provides option to disable tabs in File Explorer { // Removed in 23575.1000+ + // Crashing on 22635.2915 + if ((global_rovi.dwBuildNumber >= 22621 && global_rovi.dwBuildNumber <= 22635) && global_ubr >= 2915) + break; buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED; } break; } - case 40729001: // WASDKInFileExplorer + case 40729001: // WASDKInFileExplorer - Removed in 22635.2915+ + case 42295138: // XAMLFolderViewSupport - Depends on WASDKInFileExplorer { if (dwFileExplorerCommandUI == 1 // Windows 10 Ribbon <-- fixes crashing when navigating back to a WASDK view || dwFileExplorerCommandUI == 2 // Windows 7 Command Bar <-- ditto @@ -9765,6 +9769,9 @@ int RtlQueryFeatureConfigurationHook(UINT32 featureId, int sectionType, INT64* c || dwFileExplorerCommandUI == 4) // Windows 11 Command Bar (classic Address Bar) { // Option to disable the new navigation bar + // Crashing on 22635.2915 + if ((global_rovi.dwBuildNumber >= 22621 && global_rovi.dwBuildNumber <= 22635) && global_ubr >= 2915) + break; buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED; } break; @@ -9778,17 +9785,6 @@ int RtlQueryFeatureConfigurationHook(UINT32 featureId, int sectionType, INT64* c } break; } -#if 0 - case 42952021: // CategorySpecificXamlExtensions - { - if (bOldTaskbar) - { - // Make CTray::Init() use IXamlExtensionsStatics (first version, that we can modify) - buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED; - } - break; - } -#endif case 44656322: // ID44656322 { if (bOldTaskbar)