From eaf6a7ab8796a7128fc64516eac4351717a5b2f7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 26 Jan 2024 10:27:40 +0100 Subject: [PATCH] common,w32: Fix use of GNUPG_SPAWN_KEEP_STDERR. * common/exechelp-w32.c (gnupg_spawn_process): Fix macro. -- Fixes-commit: 6d6438a361d25f3b269f702e017f5e39fd1f5c38 GnuPG-bug-id: 6961 --- common/exechelp-w32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c index 0034e03f2..2093f0d8b 100644 --- a/common/exechelp-w32.c +++ b/common/exechelp-w32.c @@ -561,7 +561,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[], nullhd[1] = ((flags & GNUPG_SPAWN_KEEP_STDOUT)? GetStdHandle (STD_OUTPUT_HANDLE) : w32_open_null (1)); if (errpipe[1] == INVALID_HANDLE_VALUE) - nullhd[2] = ((flags & GNUPG_SPAWN_KEEP_STDOUT)? + nullhd[2] = ((flags & GNUPG_SPAWN_KEEP_STDERR)? GetStdHandle (STD_ERROR_HANDLE) : w32_open_null (1)); memset (&si, 0, sizeof si);