* path.cc (mount_info::conv_to_win32_path): More path tweaking.
This commit is contained in:
@ -1242,7 +1242,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
|
||||
int n = mi->native_pathlen;
|
||||
memcpy (dst, mi->native_path, n + 1);
|
||||
char *p = pathbuf + mi->posix_pathlen;
|
||||
if ((isdrive (dst) && !dst[2]) || (*p && dst[n - 1] != '\\'))
|
||||
if ((isdrive (dst) && !dst[2]) || (*p && *p != '/'))
|
||||
dst[n++] = '\\';
|
||||
strcpy (dst + n, p);
|
||||
backslashify (dst, dst, 0);
|
||||
|
Reference in New Issue
Block a user