[PATCH 1/3] testbot/testagentd: Don't close the GetStdHandle()s in case of error.
Francois Gouget
fgouget at codeweavers.com
Thu Oct 31 11:02:38 CDT 2019
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
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 acd0138d4..b3db635e1 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--;
}
--
2.20.1
More information about the wine-devel
mailing list