aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/exechelp-w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c
index 7439c0b91..1b3d072ce 100644
--- a/common/exechelp-w32.c
+++ b/common/exechelp-w32.c
@@ -430,7 +430,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
if (infp)
es_fclose (infp);
else if (inpipe[1] != INVALID_HANDLE_VALUE)
- CloseHandle (outpipe[1]);
+ CloseHandle (inpipe[1]);
if (inpipe[0] != INVALID_HANDLE_VALUE)
CloseHandle (inpipe[0]);
return err;
@@ -466,7 +466,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
if (infp)
es_fclose (infp);
else if (inpipe[1] != INVALID_HANDLE_VALUE)
- CloseHandle (outpipe[1]);
+ CloseHandle (inpipe[1]);
if (inpipe[0] != INVALID_HANDLE_VALUE)
CloseHandle (inpipe[0]);
return err;