diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-17 08:08:51 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-17 08:08:51 +0000 |
commit | b7fe90aa364c98eb2d5260dce0078f7ad034f0a3 (patch) | |
tree | a50389261840e31b5a0d0eeca7fbc31a529dcdde /rbutil/rbutilqt/base | |
parent | 99408dd45ea4243d7be88d5d3c27a7267fdef6f8 (diff) |
The mountpoint is stored with normalized separators.
Make sure to convert it on reading to avoid not finding it even if stored with
native separators in the configuration. Fix a warning on Windows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30145 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index 1962df2a16..d52eba4250 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp @@ -116,7 +116,7 @@ QString Utils::filesystemName(QString path) #if defined(Q_OS_WIN32) wchar_t volname[MAX_PATH+1]; bool res = GetVolumeInformationW((LPTSTR)path.utf16(), volname, MAX_PATH+1, - NULL, NULL, NULL, NULL, NULL); + NULL, NULL, NULL, NULL, 0); if(res) { name = QString::fromWCharArray(volname); } |