mirror of
https://github.com/reactos/wine.git
synced 2024-12-12 22:05:55 +00:00
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: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e1f0fb8b2d
commit
bd111803d2
@ -372,7 +372,13 @@ static HWND CheckWindowCreated(const char *winName, BOOL closeWindow, int testPa
|
||||
for (i = 0; window == NULL && i < PDDE_POLL_NUM; i++)
|
||||
{
|
||||
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",
|
||||
winName, PDDE_POLL_NUM*PDDE_POLL_TIME/1000, GetStringFromTestParams(testParams));
|
||||
|
Loading…
Reference in New Issue
Block a user