1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-15 03:27:35 +01:00

Attempt to mitigate #416

This commit is contained in:
Valentin Radu 2021-12-10 03:42:32 +02:00
parent a9ec6031d2
commit d7885414f2
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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");