Commit bd111803 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Only look for Explorer windows for the progman tests.

In the Spanish locale the 'Startup' folder is called 'Inicio' which matches another window. Closing that window causes the shutdown dialog to pop up, resulting in a test timeout. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e1f0fb8b
...@@ -372,7 +372,13 @@ static HWND CheckWindowCreated(const char *winName, BOOL closeWindow, int testPa ...@@ -372,7 +372,13 @@ static HWND CheckWindowCreated(const char *winName, BOOL closeWindow, int testPa
for (i = 0; window == NULL && i < PDDE_POLL_NUM; i++) for (i = 0; window == NULL && i < PDDE_POLL_NUM; i++)
{ {
Sleep(PDDE_POLL_TIME); Sleep(PDDE_POLL_TIME);
window = FindWindowA(NULL, winName); /* Specify the window class name to make sure what we find is really an
* Explorer window. Explorer used two different window classes so try
* both.
*/
window = FindWindowA("ExplorerWClass", winName);
if (!window)
window = FindWindowA("CabinetWClass", winName);
} }
ok (window != NULL, "Window \"%s\" was not created in %i seconds - assumed failure.%s\n", ok (window != NULL, "Window \"%s\" was not created in %i seconds - assumed failure.%s\n",
winName, PDDE_POLL_NUM*PDDE_POLL_TIME/1000, GetStringFromTestParams(testParams)); winName, PDDE_POLL_NUM*PDDE_POLL_TIME/1000, GetStringFromTestParams(testParams));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment