mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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>
This commit is contained in:
parent
9ae3cfcabe
commit
a3be97df4d
@ -337,6 +337,7 @@ gnupg_w32_set_errno (int ec)
|
|||||||
if (ec == -1)
|
if (ec == -1)
|
||||||
ec = GetLastError ();
|
ec = GetLastError ();
|
||||||
_set_errno (map_w32_to_errno (ec));
|
_set_errno (map_w32_to_errno (ec));
|
||||||
|
return ec;
|
||||||
}
|
}
|
||||||
#endif /*HAVE_W32_SYSTEM*/
|
#endif /*HAVE_W32_SYSTEM*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user