summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-09-09 10:56:04 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-09-09 11:09:47 (GMT)
commit3da521bc8030671800c9442b1c7013d11a263c33 (patch)
tree8395fd9f3efc2d0fad429cabe799ed46da684a42 /src/corelib/io
parent8567a679b8960658c19ac75c32fb19c259a33e54 (diff)
downloadQt-3da521bc8030671800c9442b1c7013d11a263c33.zip
Qt-3da521bc8030671800c9442b1c7013d11a263c33.tar.gz
Qt-3da521bc8030671800c9442b1c7013d11a263c33.tar.bz2
Unable to access file means QFile::PermissionsError
Relates to changes introduced in 6d87a01f2d3108bbee5b9995f20edfc26a01cd57. Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp
index 763589a..898447c 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -1954,7 +1954,7 @@ uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size,
#endif
if (handle == INVALID_HANDLE_VALUE) {
- q->setError(QFile::UnspecifiedError, QLatin1String("No handle on file"));
+ q->setError(QFile::PermissionsError, qt_error_string(ERROR_ACCESS_DENIED));
return 0;
}