mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
w32: Fix cast from intptr_t of _get_osfhandle.
* common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
da3a4c54a8
commit
8e04cf969e
@ -396,7 +396,7 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
|
|||||||
create a copy of the array. */
|
create a copy of the array. */
|
||||||
#ifdef HAVE_W32_SYSTEM
|
#ifdef HAVE_W32_SYSTEM
|
||||||
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
|
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
|
||||||
(unsigned long)(void*)_get_osfhandle (extrapipe[0]));
|
(unsigned long)_get_osfhandle (extrapipe[0]));
|
||||||
#else
|
#else
|
||||||
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", extrapipe[0]);
|
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", extrapipe[0]);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user