From: Anders Kjersem <andersdev@proton.me> --- dlls/wshom.ocx/shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wshom.ocx/shell.c b/dlls/wshom.ocx/shell.c index c9192bf5d60..8b435163d3c 100644 --- a/dlls/wshom.ocx/shell.c +++ b/dlls/wshom.ocx/shell.c @@ -1838,11 +1838,11 @@ static HRESULT WINAPI WshShell3_AppActivate(IWshShell3 *iface, VARIANT *App, VAR if (IsWindowEnabled(hWnd)) { hWndTarget = hWnd; - break; // Enabled and visible, we are done + break; /* Enabled and visible, we are done */ } else if (!hWndTarget) { - hWndTarget = hWnd; // We will accept a disabled window if we have to + hWndTarget = hWnd; /* We will accept a disabled window if we have to */ } } } @@ -1883,7 +1883,7 @@ static HRESULT WINAPI WshShell3_AppActivate(IWshShell3 *iface, VARIANT *App, VAR if (Wait && !is_optional_argument(Wait) && SUCCEEDED(VariantChangeType(&vTmp, Wait, 0, VT_BOOL)) && V_BOOL(&vTmp)) { - UINT wait = 2000, interval = 100; + UINT wait = 2000, interval = 100; /* Arbitrary wait time */ for (; wait && GetForegroundWindow() != hWndTarget; wait -= interval) Sleep(interval); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11157