aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-24 20:57:19 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-24 20:57:19 +0000
commit3409763ff308ce9a6ee393ba2ac47447ede9fde7 (patch)
tree4c9b62b3220f8c9ac0a775b369868f7c41a955e7 /winsup/cygwin/path.cc
parent53a12585ac0c7537d337fdfbb4814cf29cd2c2ab (diff)
downloadnewlib-3409763ff308ce9a6ee393ba2ac47447ede9fde7.zip
newlib-3409763ff308ce9a6ee393ba2ac47447ede9fde7.tar.gz
newlib-3409763ff308ce9a6ee393ba2ac47447ede9fde7.tar.bz2
* autoload.cc (IsDebuggerPresent): Make conditional load since it is not
available everywhere. * path.cc (mount_info::conv_to_win32_path): Only consider /cygdrive to be FH_CYGDRIVE, not /cygdrive/x.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index e818ed9..8e1775c 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1390,13 +1390,13 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
{
unit = 0;
dst[0] = '\0';
+ if (mount_table->cygdrive_len > 1)
+ devn = FH_CYGDRIVE;
}
else if (!cygdrive_win32_path (pathbuf, dst, unit))
return ENOENT;
else
*flags = cygdrive_flags;
- if (mount_table->cygdrive_len > 1)
- devn = FH_CYGDRIVE;
goto out;
}