Francois Gouget : shell32/tests: Check the hProcess field when ShellExecuteEx() fails.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 12 12:15:22 CST 2016
Module: wine
Branch: master
Commit: 0a867de22d0f2fc4ff7a44396fac55e0fdbc9978
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a867de22d0f2fc4ff7a44396fac55e0fdbc9978
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Mon Jan 11 02:18:12 2016 +0100
shell32/tests: Check the hProcess field when ShellExecuteEx() fails.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shell32/tests/shlexec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 047d041..5dcda39 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -198,7 +198,7 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file,
sei.hkeyClass=NULL;
sei.dwHotKey=0;
U(sei).hIcon=NULL;
- sei.hProcess=NULL; /* Out */
+ sei.hProcess=(HANDLE)0xdeadbeef; /* Out */
DeleteFileA(child_file);
SetLastError(0xcafebabe);
@@ -221,6 +221,9 @@ static INT_PTR shell_execute_ex(DWORD mask, LPCSTR verb, LPCSTR file,
else todo_wine
ok(wait_rc==WAIT_OBJECT_0, "WaitForSingleObject returned %d\n", wait_rc);
}
+ else
+ ok(sei.hProcess==NULL, "%s returned a process handle %p\n", shell_call, sei.hProcess);
+
/* The child process may have changed the result file, so let profile
* functions know about it
*/
More information about the wine-cvs
mailing list