* external.cc (fillout_pinfo): Use correct pids.

* path.cc (mount_info::conv_to_win32_path): Correct test for whether to include
a slash.
This commit is contained in:
Christopher Faylor
2001-05-11 21:01:44 +00:00
parent 37922e1277
commit c3a245f5bf
3 changed files with 11 additions and 3 deletions

View File

@ -1265,7 +1265,9 @@ 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 && *p != '/'))
if (*p == '/')
/* nothing */;
else if ((isdrive (dst) && !dst[2]) || *p)
dst[n++] = '\\';
strcpy (dst + n, p);
backslashify (dst, dst, 0);