1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-28 21:50:02 +02:00

common,w32: Fix use of GNUPG_SPAWN_KEEP_STDERR.

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

Fixes-commit: 7ba44d15ca
GnuPG-bug-id: 6961
This commit is contained in:
Werner Koch 2024-01-26 10:27:40 +01:00
parent ccd201d7db
commit 535c5cf769
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -550,7 +550,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));
/* Start the process. Note that we can't run the PREEXEC function