shell32/tests: Try harder to close Open With window

Nikolay Sivov nsivov at codeweavers.com
Mon Jul 6 13:44:56 CDT 2015


---
-------------- next part --------------
From 867325f7acb53f93c85968c7a9e26f2b27e78023 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon, 6 Jul 2015 21:42:34 +0300
Subject: [PATCH] shell32/tests: Try harder to close Open With window

---
 dlls/shell32/tests/shlexec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index f81794e..f55fc74 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -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);
-- 
2.1.4



More information about the wine-patches mailing list