Commit 15d9a4a7 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 794ad86f
......@@ -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);
......
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