aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysutils.c')
-rw-r--r--src/sysutils.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/sysutils.c b/src/sysutils.c
index b689ff7..b6d6a55 100644
--- a/src/sysutils.c
+++ b/src/sysutils.c
@@ -308,10 +308,15 @@ _gpgrt_fname_to_wchar (const char *fname)
wname = _gpgrt_utf8_to_wchar (fname);
if (!wname)
return NULL;
- /* We use only backslashes in the wchar version of fname. */
- for (w = wname; *w; w++)
- if (*w == L'/')
- *w = L'\\';
+
+ /* Under Wine, keep the slash as is. */
+ if (!_gpgrt_windows_feature (GPGRT_WINDOWS_UNDER_WINE))
+ {
+ /* We use only backslashes in the wchar version of fname. */
+ for (w = wname; *w; w++)
+ if (*w == L'/')
+ *w = L'\\';
+ }
if (no_extlenpath > 0)
success = 1; /* Extended length path support has been disabled. */