shell32/tests: Try harder to close Open With window.

oldstable
Nikolay Sivov 2015-07-06 21:44:56 +03:00 committed by Alexandre Julliard
parent cf20731447
commit 28caa68d41
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ static INT_PTR shell_execute(LPCSTR verb, LPCSTR file, LPCSTR parameters, LPCSTR
if (wait_rc == WAIT_TIMEOUT)
{
HWND wnd = FindWindowA("#32770", "Windows");
if (!wnd)
wnd = FindWindowA("Shell_Flyout", "");
if (wnd != NULL)
{
SendMessageA(wnd, WM_CLOSE, 0, 0);