From a4f5bd0ceb071d6cb1262dce30a6cc3cedf10cf8 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Fri, 6 Oct 2023 04:39:04 +0700 Subject: [PATCH] Start10: Fixed non-UWP apps disappearing on Dev channel builds 23545+ --- ExplorerPatcher/dllmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 81b50a0..c9ba8f7 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -9304,6 +9304,9 @@ BOOL twinui_RegisterHotkeyHook(HWND hWnd, int id, UINT fsModifiers, UINT vk) #pragma region "Redirect certain library loads to other versions" HMODULE patched_LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags) { + if (IsWindows11Version22H2OrHigher()) + return LoadLibraryExW(lpLibFileName, hFile, dwFlags); + WCHAR path[MAX_PATH]; GetSystemDirectoryW(path, MAX_PATH); wcscat_s(path, MAX_PATH, L"\\AppResolver.dll"); @@ -9313,7 +9316,6 @@ HMODULE patched_LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlag wcscat_s(path, MAX_PATH, L"\\SystemApps\\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\\AppResolverLegacy.dll"); return LoadLibraryExW(path, hFile, dwFlags); } - if (IsWindows11Version22H2Build1413OrHigher()) return LoadLibraryExW(lpLibFileName, hFile, dwFlags); GetSystemDirectoryW(path, MAX_PATH); wcscat_s(path, MAX_PATH, L"\\StartTileData.dll"); if (!_wcsicmp(path, lpLibFileName))