summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-27 02:29:57 +0000
committerChristopher Faylor <me@cgf.cx>2002-06-27 02:29:57 +0000
commitb3e2d035bbf42433f48a966e1f73f9a67082d37e (patch)
tree09c8b6a33c677c20d4801075b05c57e20c2ebc53 /winsup/cygwin/fhandler_disk_file.cc
parentc99902b9b09c43722eeccac40175f9e69d9e59c4 (diff)
downloadcygnal-b3e2d035bbf42433f48a966e1f73f9a67082d37e.tar.gz
cygnal-b3e2d035bbf42433f48a966e1f73f9a67082d37e.tar.bz2
cygnal-b3e2d035bbf42433f48a966e1f73f9a67082d37e.zip
* cygheap.cc (cygheap_user::set_name): Correct thinko in below change.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 443612ff4..c412e2109 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -103,11 +103,13 @@ fhandler_disk_file::fstat_by_name (struct __stat64 *buf, path_conv *pc)
if (!pc->exists ())
{
+ debug_printf ("already determined that pc does not exist");
set_errno (ENOENT);
res = -1;
}
- else if ((handle = FindFirstFile (pc->get_win32 (), &local)) == INVALID_HANDLE_VALUE)
+ else if ((handle = FindFirstFile ((char *) pc, &local)) == INVALID_HANDLE_VALUE)
{
+ debug_printf ("FindFirstFile failed, %E");
__seterrno ();
res = -1;
}