1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-05 05:45:36 +01:00

File Explorer: Fixed crashes when using Windows 7/10 control interface on OS builds 22635.2915+

This commit is contained in:
Amrsatrio 2023-12-16 02:29:54 +07:00
parent bff76da2bf
commit 3a1b8b8296

View File

@ -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 || dwFileExplorerCommandUI == 3) // Windows 11 Command Bar (no Tabs, classic Address Bar) <-- provides option to disable tabs in File Explorer
{ {
// Removed in 23575.1000+ // 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; buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED;
} }
break; 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 if (dwFileExplorerCommandUI == 1 // Windows 10 Ribbon <-- fixes crashing when navigating back to a WASDK view
|| dwFileExplorerCommandUI == 2 // Windows 7 Command Bar <-- ditto || 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) || dwFileExplorerCommandUI == 4) // Windows 11 Command Bar (classic Address Bar)
{ {
// Option to disable the new navigation 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; buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED;
} }
break; break;
@ -9778,17 +9785,6 @@ int RtlQueryFeatureConfigurationHook(UINT32 featureId, int sectionType, INT64* c
} }
break; 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 case 44656322: // ID44656322
{ {
if (bOldTaskbar) if (bOldTaskbar)