Browse Source

Start10: Fixed a bug that prevented the menu from working on OS builds 22621.1413 and newer

pull/1720/head
Valentin Radu 2 years ago
parent
commit
46c504172c
  1. 9
      ExplorerPatcher/dllmain.c
  2. 2
      ExplorerPatcher/settings.reg

9
ExplorerPatcher/dllmain.c

@ -9245,19 +9245,20 @@ HMODULE patched_LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlag
{ {
WCHAR path[MAX_PATH]; WCHAR path[MAX_PATH];
GetSystemDirectoryW(path, MAX_PATH); GetSystemDirectoryW(path, MAX_PATH);
wcscat_s(path, MAX_PATH, L"\\StartTileData.dll"); wcscat_s(path, MAX_PATH, L"\\AppResolver.dll");
if (!_wcsicmp(path, lpLibFileName)) if (!_wcsicmp(path, lpLibFileName))
{ {
GetWindowsDirectoryW(path, MAX_PATH); GetWindowsDirectoryW(path, MAX_PATH);
wcscat_s(path, MAX_PATH, L"\\SystemApps\\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\\StartTileDataLegacy.dll"); wcscat_s(path, MAX_PATH, L"\\SystemApps\\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\\AppResolverLegacy.dll");
return LoadLibraryExW(path, hFile, dwFlags); return LoadLibraryExW(path, hFile, dwFlags);
} }
if (IsWindows11Version22H2Build1413OrHigher()) return LoadLibraryExW(lpLibFileName, hFile, dwFlags);
GetSystemDirectoryW(path, MAX_PATH); GetSystemDirectoryW(path, MAX_PATH);
wcscat_s(path, MAX_PATH, L"\\AppResolver.dll"); wcscat_s(path, MAX_PATH, L"\\StartTileData.dll");
if (!_wcsicmp(path, lpLibFileName)) if (!_wcsicmp(path, lpLibFileName))
{ {
GetWindowsDirectoryW(path, MAX_PATH); GetWindowsDirectoryW(path, MAX_PATH);
wcscat_s(path, MAX_PATH, L"\\SystemApps\\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\\AppResolverLegacy.dll"); wcscat_s(path, MAX_PATH, L"\\SystemApps\\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\\StartTileDataLegacy.dll");
return LoadLibraryExW(path, hFile, dwFlags); return LoadLibraryExW(path, hFile, dwFlags);
} }
return LoadLibraryExW(lpLibFileName, hFile, dwFlags); return LoadLibraryExW(lpLibFileName, hFile, dwFlags);

2
ExplorerPatcher/settings.reg

@ -328,6 +328,8 @@
;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_NoStartMenuMorePrograms"=dword:00000000 ;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_NoStartMenuMorePrograms"=dword:00000000
;u Pin tiles to Windows 10 Start menu from File Explorer ;u Pin tiles to Windows 10 Start menu from File Explorer
;pin_tiles ;pin_tiles
;y IMPORTANT, MUST READ: Notice regarding this feature (online)
;https://github.com/valinet/ExplorerPatcher/discussions/1679
;g StartMenu_Windows10 ;g StartMenu_Windows10

Loading…
Cancel
Save