shell32/tests: Fix a race condition in the DDE ShellExecute() tests on Windows 10.

Even if we have a results file after a failed ShellExecuteEx() call, it
may not correspond to the last call and should thus be ignored.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2016-04-11 18:43:55 +02:00 committed by Alexandre Julliard
parent 794ad86fec
commit 15d9a4a711
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ static INT_PTR shell_execute_ex_(const char* file, int line,
* functions know about it
*/
WritePrivateProfileStringA(NULL, NULL, NULL, child_file);
if (GetFileAttributesA(child_file) != INVALID_FILE_ATTRIBUTES)
if (rc > 32 && GetFileAttributesA(child_file) != INVALID_FILE_ATTRIBUTES)
{
int c;
dump_child_(file, line);