common,w32: Fix use of GNUPG_SPAWN_KEEP_STDERR.

* common/exechelp-w32.c (gnupg_spawn_process): Fix macro.
--

Fixes-commit: 6d6438a361
GnuPG-bug-id: 6961
This commit is contained in:
Werner Koch 2024-01-26 10:27:40 +01:00
parent 367ae86019
commit eaf6a7ab87
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -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);