summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/exectool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/exectool.c b/common/exectool.c
index d8326e77b..ce424fc49 100644
--- a/common/exectool.c
+++ b/common/exectool.c
@@ -407,8 +407,13 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
Yeah, that is an ugly non-thread safe hack but it safes us to
create a copy of the array. */
#ifdef HAVE_W32_SYSTEM
+# ifdef _WIN64
+ snprintf (extrafdbuf, sizeof extrafdbuf, "-&%llu",
+ (unsigned long long)exceptclose[i]);
+# else
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
(unsigned long)exceptclose[i]);
+# endif
#else
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", exceptclose[i]);
#endif