From 960df54ce8d479b42813dc14789cbf9299e207b0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 20 Oct 2010 15:06:15 +0000 Subject: Fix for W32CE. --- src/gpg-error.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gpg-error.c') diff --git a/src/gpg-error.c b/src/gpg-error.c index 4b3c19a..fa868ae 100644 --- a/src/gpg-error.c +++ b/src/gpg-error.c @@ -131,6 +131,12 @@ get_locale_dir (void) p = strrchr (result, '\\'); if (p) *p = 0; + /* If we are installed below "bin" strip that part and + use the top directory instead. */ + p = strrchr (result, '\\'); + if (p && !strcmp (p+1, "bin")) + *p = 0; + /* Append the static part. */ strcat (result, SLDIR); } } -- cgit v1.2.3