common:w32: Fix gnupg_w32_set_errno.

* common/sysutils.c (gnupg_w32_set_errno): Return EC.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-07-10 11:18:08 +09:00
parent 9f39e4da29
commit 5bc949d230
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 1 additions and 0 deletions

View File

@ -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*/