Module: tools Branch: master Commit: d9eb13f6fef026dccaff6ddba52e1dfaf6653d9f URL: https://source.winehq.org/git/tools.git/?a=commit;h=d9eb13f6fef026dccaff6ddb...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Oct 31 17:02:38 2019 +0100
testbot/testagentd: Don't close the GetStdHandle()s in case of error.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/src/testagentd/platform_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/src/testagentd/platform_windows.c b/testbot/src/testagentd/platform_windows.c index acd0138..b3db635 100644 --- a/testbot/src/testagentd/platform_windows.c +++ b/testbot/src/testagentd/platform_windows.c @@ -112,7 +112,7 @@ uint64_t platform_run(char** argv, uint32_t flags, char** redirects) free(cmdline); while (i > 0) { - if (fhs[i] != INVALID_HANDLE_VALUE) + if (redirects[i][0] && fhs[i] != INVALID_HANDLE_VALUE) CloseHandle(fhs[i]); i--; }