summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygpath.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-05-14 16:07:26 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-05-14 16:07:26 +0000
commit5588e287656755ccf77f8939470c3fde41b7a1d7 (patch)
tree22cc87405247040561ea8976e1664b5a64ae4779 /winsup/utils/cygpath.cc
parentef48a2cad370411ca269007026e400ba5a7abde2 (diff)
downloadcygnal-5588e287656755ccf77f8939470c3fde41b7a1d7.tar.gz
cygnal-5588e287656755ccf77f8939470c3fde41b7a1d7.tar.bz2
cygnal-5588e287656755ccf77f8939470c3fde41b7a1d7.zip
* cygpath.cc (get_short_name): Fix error checking.
Diffstat (limited to 'winsup/utils/cygpath.cc')
-rw-r--r--winsup/utils/cygpath.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc
index 1d8215df2..1536ecedc 100644
--- a/winsup/utils/cygpath.cc
+++ b/winsup/utils/cygpath.cc
@@ -90,7 +90,7 @@ get_short_paths (char *path)
if (ptr)
*ptr++ = 0;
len = GetShortPathName (next, NULL, 0);
- if (len == ERROR_INVALID_PARAMETER)
+ if (len ==0 && GetLastError () == ERROR_INVALID_PARAMETER)
{
fprintf (stderr, "%s: cannot create short name of %s\n", prog_name,
next);