shell32/tests: Fix a race condition in the DDE ShellExecute() tests on Windows 10.
Francois Gouget
fgouget at free.fr
Mon Apr 11 11:43:55 CDT 2016
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 at free.fr>
---
dlls/shell32/tests/shlexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index ebf9d80..9db12ce 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -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);
--
2.8.0.rc3
More information about the wine-patches
mailing list