summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-07-10 04:18:08 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-07-10 04:21:16 +0200
commita3be97df4ddfce008dcc6e877e9fb98c71656ec6 (patch)
treeac64160b263a8d9dc4ee6ddccfeb8efc7fa3adce /common
parentdirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP. (diff)
downloadgnupg2-a3be97df4ddfce008dcc6e877e9fb98c71656ec6.tar.xz
gnupg2-a3be97df4ddfce008dcc6e877e9fb98c71656ec6.zip
common:w32: Fix gnupg_w32_set_errno.
* common/sysutils.c (gnupg_w32_set_errno): Return EC. -- Cherry-pick master commit of: 4c6b759368bcf19a13df07c5c6080765ecac28ca Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common')
-rw-r--r--common/sysutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.c b/common/sysutils.c
index f8e6d86fc..c88c02d36 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*/