diff options
author | João Abecasis <joao@abecasis.name> | 2009-09-09 10:56:04 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-09-09 11:09:47 (GMT) |
commit | 3da521bc8030671800c9442b1c7013d11a263c33 (patch) | |
tree | 8395fd9f3efc2d0fad429cabe799ed46da684a42 /src/corelib | |
parent | 8567a679b8960658c19ac75c32fb19c259a33e54 (diff) | |
download | Qt-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')
-rw-r--r-- | src/corelib/io/qfsfileengine_win.cpp | 2 |
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; } |