Browse Source

Mitigation for certain Explorer crashes at startup

pull/886/head
Valentin Radu 4 years ago
parent
commit
baeabe8979
  1. 11
      ExplorerPatcher/dllmain.c

11
ExplorerPatcher/dllmain.c

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

Loading…
Cancel
Save