diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-03-20 13:39:50 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-03-20 13:39:50 (GMT) |
commit | d1f420ecacd8ffce5f270ace12b8e94d211796a9 (patch) | |
tree | 5dbd705e219d9003343b075aabcffd24aa02431f /win | |
parent | c84291cb33b37dadd921f07779f92acc5ea2146c (diff) | |
parent | 1abdef6a10523363f5da7923ff02d13f5bfcd92e (diff) | |
download | tcl-d1f420ecacd8ffce5f270ace12b8e94d211796a9.zip tcl-d1f420ecacd8ffce5f270ace12b8e94d211796a9.tar.gz tcl-d1f420ecacd8ffce5f270ace12b8e94d211796a9.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')
-rw-r--r-- | win/tclWinFile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index d4e8ce7..676c443 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -2059,7 +2059,7 @@ NativeStat( } hFind = (*tclWinProcs->findFirstFileProc)(nativePath, &ffd); if (hFind == INVALID_HANDLE_VALUE) { - TclWinConvertError(lasterror); + TclWinConvertError(GetLastError()); return -1; } memcpy(&data, &ffd, sizeof(data)); |