summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-20 13:41:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-20 13:41:50 (GMT)
commit09d7c9d217b0fc36a3d9a88c1583c179f8917def (patch)
tree4b6c2e0962d2c1420a2e39adae27305f6d0f3d63 /win/tclWinFile.c
parentc988bb3c5d5cc50e869497fa676dd3efac920130 (diff)
parent4146517b3b38fef9a640d441f5a3791808603330 (diff)
downloadtcl-09d7c9d217b0fc36a3d9a88c1583c179f8917def.zip
tcl-09d7c9d217b0fc36a3d9a88c1583c179f8917def.tar.gz
tcl-09d7c9d217b0fc36a3d9a88c1583c179f8917def.tar.bz2
Slightly more correct: If FindFirstFile() fails, the error should be "no such file or directory" (ENOENT) not "permission denied" (EACCES).
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 79ba40a..8e517d1 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -2007,7 +2007,7 @@ NativeStat(
}
hFind = FindFirstFile(nativePath, &ffd);
if (hFind == INVALID_HANDLE_VALUE) {
- TclWinConvertError(lasterror);
+ TclWinConvertError(GetLastError());
return -1;
}
memcpy(&data, &ffd, sizeof(data));