aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-10 02:18:08 +0000
committerNIIBE Yutaka <[email protected]>2023-07-10 02:20:13 +0000
commit5bc949d23040a50dd4aa87fb3fee9c69c3e9abe6 (patch)
treeae9fb0ef3c19479a9ef5ee7110e6f367ba51de7c
parentgpg: Add algo constants for PQC. (diff)
downloadgnupg-5bc949d23040a50dd4aa87fb3fee9c69c3e9abe6.tar.gz
gnupg-5bc949d23040a50dd4aa87fb3fee9c69c3e9abe6.zip
common:w32: Fix gnupg_w32_set_errno.
* common/sysutils.c (gnupg_w32_set_errno): Return EC. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--common/sysutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index fc60af49c..73690a760 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -337,6 +337,7 @@ gnupg_w32_set_errno (int ec)
if (ec == -1)
ec = GetLastError ();
_set_errno (map_w32_to_errno (ec));
+ return ec;
}
#endif /*HAVE_W32_SYSTEM*/