1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-24 07:30:22 +01:00

Mitigation for certain Explorer crashes at startup

This commit is contained in:
Valentin Radu 2021-12-12 15:54:36 +02:00
parent 9d00181c4e
commit baeabe8979

View File

@ -3465,6 +3465,17 @@ DWORD WindowSwitcher(DWORD unused)
while (TRUE)
{
//Sleep(5000);
while (!FindWindowExW(
NULL,
NULL,
L"Shell_TrayWnd",
NULL
))
{
printf("[sws] Waiting for taskbar...\n");
Sleep(100);
}
Sleep(100);
sws_ReadSettings(NULL);
if (sws_IsEnabled)
{