Browse Source

Attempt to mitigate #416

pull/886/head 22000.348.40.7_d788541
Valentin Radu 4 years ago
parent
commit
d7885414f2
  1. 1
      CHANGELOG.md
  2. 8
      ExplorerPatcher/dllmain.c

1
CHANGELOG.md

@ -27,6 +27,7 @@ Tested on build 22000.348. @@ -27,6 +27,7 @@ Tested on build 22000.348.
* File Explorer is restarted unelevated when servicing the application (#528) (.7)
* Reliability improvements for File Explorer restarts (#529) (.7)
* When changing the main taskbar position and restarting File Explorer, the new position is now correctly saved and applied when File Explorer restarts (#523) (.7)
* Mitigation for the issue described in #416 (.7)
#### Simple Window Switcher

8
ExplorerPatcher/dllmain.c

@ -6847,6 +6847,14 @@ HRESULT EntryPoint(DWORD dwMethod) @@ -6847,6 +6847,14 @@ HRESULT EntryPoint(DWORD dwMethod)
);
CloseHandle(hProcess);
TCHAR wszSearchIndexerPath[MAX_PATH];
GetSystemDirectoryW(wszSearchIndexerPath, MAX_PATH);
wcscat_s(wszSearchIndexerPath, MAX_PATH, L"\\SearchIndexer.exe");
if (!_wcsicmp(exePath, wszSearchIndexerPath))
{
return E_NOINTERFACE;
}
TCHAR wszExplorerExpectedPath[MAX_PATH];
GetWindowsDirectoryW(wszExplorerExpectedPath, MAX_PATH);
wcscat_s(wszExplorerExpectedPath, MAX_PATH, L"\\explorer.exe");

Loading…
Cancel
Save