diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-01-26 14:05:25 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-01-26 14:06:44 (GMT) |
commit | 2b13dc93d406040d5f62ca57b44969b484370f87 (patch) | |
tree | c8e2fbb5eedecb3f7477703f85161884f1935f7f /src/gui/dialogs | |
parent | 7bc7f6d0901cb4700c98c63aca53b494f55914e4 (diff) | |
download | Qt-2b13dc93d406040d5f62ca57b44969b484370f87.zip Qt-2b13dc93d406040d5f62ca57b44969b484370f87.tar.gz Qt-2b13dc93d406040d5f62ca57b44969b484370f87.tar.bz2 |
Fix compile on MSVC 2003. ARRAYSIZE macro doesn't exit.
Reviewed-by:Jan-Arve
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qfilesystemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfilesystemmodel.cpp b/src/gui/dialogs/qfilesystemmodel.cpp index ae75126..0e1837b 100644 --- a/src/gui/dialogs/qfilesystemmodel.cpp +++ b/src/gui/dialogs/qfilesystemmodel.cpp @@ -1667,7 +1667,7 @@ QFileSystemModelPrivate::QFileSystemNode* QFileSystemModelPrivate::addNode(QFile //GetVolumeInformation requires to add trailing backslash const QString nodeName = fileName + QLatin1String("\\"); BOOL success = ::GetVolumeInformation((wchar_t *)(nodeName.utf16()), - name, ARRAYSIZE(name), NULL, 0, NULL, NULL, 0); + name, MAX_PATH + 1, NULL, 0, NULL, NULL, 0); if (success && name[0]) node->volumeName = QString::fromWCharArray(name); } |