diff options
author | Werner Koch <[email protected]> | 2023-07-04 07:19:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-07-04 07:19:05 +0000 |
commit | 5e94470d053ec93f79acb03635e67839a5a1e6a8 (patch) | |
tree | 7c7179ba77db1163d80904eb19d6b338c810620b /common/sysutils.c | |
parent | Prepare NEWS for the next release (diff) | |
download | gnupg-5e94470d053ec93f79acb03635e67839a5a1e6a8.tar.gz gnupg-5e94470d053ec93f79acb03635e67839a5a1e6a8.zip |
common,w32: Add missing GetLastError->errno mapping.
* common/iobuf.c (file_filter, sock_filter): Add missing mapping.
--
GnuPG-bug-id: 6528
Diffstat (limited to 'common/sysutils.c')
-rw-r--r-- | common/sysutils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index 231565177..f8e6d86fc 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -327,9 +327,10 @@ map_w32_to_errno (DWORD w32_err) #endif /*HAVE_W32_SYSTEM*/ -/* Set ERRNO from the Windows error. EC may be -1 to use the last error. */ +/* Set ERRNO from the Windows error. EC may be -1 to use the last + * error. Returns the Windows error code. */ #ifdef HAVE_W32_SYSTEM -void +int gnupg_w32_set_errno (int ec) { /* FIXME: Replace by gpgrt_w32_set_errno. */ |