Francois Gouget : testbot/testagentd: Don't close the GetStdHandle()s in case of error.
Alexandre Julliard
julliard at winehq.org
Thu Oct 31 16:46:47 CDT 2019
Module: tools
Branch: master
Commit: d9eb13f6fef026dccaff6ddba52e1dfaf6653d9f
URL: https://source.winehq.org/git/tools.git/?a=commit;h=d9eb13f6fef026dccaff6ddba52e1dfaf6653d9f
Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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--;
}
More information about the wine-cvs
mailing list