diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-03-20 13:41:50 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-03-20 13:41:50 (GMT) |
commit | f771719ac2875a6dafb2c008c34f95476e3bf808 (patch) | |
tree | 4b6c2e0962d2c1420a2e39adae27305f6d0f3d63 /win/tclWinFile.c | |
parent | 0ac1b15c03c0b5514d6b113140c89192d5db5ab5 (diff) | |
parent | d1f420ecacd8ffce5f270ace12b8e94d211796a9 (diff) | |
download | tcl-f771719ac2875a6dafb2c008c34f95476e3bf808.zip tcl-f771719ac2875a6dafb2c008c34f95476e3bf808.tar.gz tcl-f771719ac2875a6dafb2c008c34f95476e3bf808.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.c | 2 |
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)); |