summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine_win.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-13 15:30:02 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-13 15:32:58 (GMT)
commit942abf1a3ba60a60207a213dbeb383904f97e47d (patch)
treeffd79e0d7509b8af4705d5fcd683cfcc1cda6a1f /src/corelib/io/qfsfileengine_win.cpp
parent07fcb3b032526e76086d7f75dad01b867233b5d5 (diff)
downloadQt-942abf1a3ba60a60207a213dbeb383904f97e47d.zip
Qt-942abf1a3ba60a60207a213dbeb383904f97e47d.tar.gz
Qt-942abf1a3ba60a60207a213dbeb383904f97e47d.tar.bz2
fixing return values _wchmod on Windows CE
_wchmod returns 0 on success and -1 on error. Our Windows CE implementation did it wrong. Thanks to Konstantin Ritt for spotting this! Reviewed-by: mauricek
Diffstat (limited to 'src/corelib/io/qfsfileengine_win.cpp')
-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 3394a00..ba93a94 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -1706,7 +1706,7 @@ bool QFSFileEngine::setPermissions(uint perms)
#if !defined(Q_OS_WINCE)
ret = ::_wchmod((wchar_t*)d->filePath.utf16(), mode) == 0;
#else
- ret = ::_wchmod((wchar_t*)d->longFileName(d->filePath).utf16(), mode);
+ ret = ::_wchmod((wchar_t*)d->longFileName(d->filePath).utf16(), mode) == 0;
#endif
return ret;
}