aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-04-14 10:57:58 +0000
committerWerner Koch <[email protected]>2010-04-14 10:57:58 +0000
commitaffc038274ff32b3b7f73a7ee9ac76aff7b32a07 (patch)
treef45bcea5f1b0909f102f5c5546104fcac89948d5 /src/init.c
parentFix type in macro name. (diff)
downloadlibgpg-error-affc038274ff32b3b7f73a7ee9ac76aff7b32a07.tar.gz
libgpg-error-affc038274ff32b3b7f73a7ee9ac76aff7b32a07.zip
MAp some W32 error codes.
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/init.c b/src/init.c
index 253cdc8..63c20de 100644
--- a/src/init.c
+++ b/src/init.c
@@ -31,6 +31,10 @@
#include "gettext.h"
#include "init.h"
+#ifdef HAVE_W32CE_SYSTEM
+# include "mkw32errmap.map.c" /* Generated map_w32codes () */
+#endif
+
/* Locale directory support. */
@@ -239,12 +243,7 @@ get_tls (void)
int
_gpg_w32ce_get_errno (void)
{
- int err;
-
- err = GetLastError ();
- /* FIXME: Should we fold some W32 error codes into the same errno
- value? */
- return err;
+ return map_w32codes ( GetLastError () );
}
#endif /*HAVE_W32CE_SYSTEM*/