diff --git a/CHANGELOG.md b/CHANGELOG.md index 51e4eb20d..c7730d4ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,14 @@ Please make sure you are connected to the Internet while installing, the applica * Windows 11 Start menu: Better enforcement for disabling the "Recommended" section. (27a8fd9) +##### 4 + +* Windows 11 Start menu: Fixed a bug that prevented the menu from working when the setting "Disable Recommended section" is used and the display scaling is 125%. (5649a83) + +##### 5 + +* Fixed a bug that could crash File Explorer on older OS builds, like 17763 (LTSC 2019). (6bc2ea5) + ## 22621.1344.53 Tested on OS builds 22621.1344, 22000.1574, and 19044.1466. diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 070f6df42..7903fbf9e 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -10162,15 +10162,17 @@ DWORD Inject(BOOL bIsExplorer) } RtlQueryFeatureConfigurationFunc = GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlQueryFeatureConfiguration"); - rv = funchook_prepare( - funchook, - (void**)&RtlQueryFeatureConfigurationFunc, - RtlQueryFeatureConfigurationHook - ); - if (rv != 0) - { - FreeLibraryAndExitThread(hModule, rv); - return FALSE; + if (RtlQueryFeatureConfigurationFunc) { + rv = funchook_prepare( + funchook, + (void**)&RtlQueryFeatureConfigurationFunc, + RtlQueryFeatureConfigurationHook + ); + if (rv != 0) + { + FreeLibraryAndExitThread(hModule, rv); + return FALSE; + } } printf("Setup ntdll functions done\n"); diff --git a/ExplorerPatcher/lvt.c b/ExplorerPatcher/lvt.c index 4b4aae522..254d4c9c4 100644 --- a/ExplorerPatcher/lvt.c +++ b/ExplorerPatcher/lvt.c @@ -573,9 +573,9 @@ void LVT_StartDocked_120DPIHack(int maxHeight) pStartSizingFrame->lpVtbl->QueryInterface(pStartSizingFrame, &IID_Windows_UI_Xaml_IFrameworkElement, &pFrameworkElement); if (pFrameworkElement) { - pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Collapsed); + if (!IsWindows11Version22H2Build1413OrHigher()) pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Collapsed); pFrameworkElement->lpVtbl->put_MaxHeight(pFrameworkElement, maxHeight); - pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Visible); + if (!IsWindows11Version22H2Build1413OrHigher()) pIUIElement->lpVtbl->put_Visibility(pIUIElement, Windows_UI_Xaml_Visibility_Visible); pFrameworkElement->lpVtbl->Release(pFrameworkElement); } pIUIElement->lpVtbl->Release(pIUIElement); diff --git a/version.h b/version.h index ade730815..c12c166ee 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define VER_MAJOR 22621 #define VER_MINOR 1413 #define VER_BUILD_HI 54 -#define VER_BUILD_LO 3 +#define VER_BUILD_LO 5 #define VER_FLAGS VS_FF_PRERELEASE @@ -12,5 +12,5 @@ #define VER_STR(arg) #arg // The String form of the version numbers -#define VER_FILE_STRING VALUE "FileVersion", "22621.1413.54.3" -#define VER_PRODUCT_STRING VALUE "ProductVersion", "22621.1413.54.3" +#define VER_FILE_STRING VALUE "FileVersion", "22621.1413.54.5" +#define VER_PRODUCT_STRING VALUE "ProductVersion", "22621.1413.54.5"