summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-17 08:08:51 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-17 08:08:51 +0000
commitb7fe90aa364c98eb2d5260dce0078f7ad034f0a3 (patch)
treea50389261840e31b5a0d0eeca7fbc31a529dcdde /rbutil/rbutilqt/base/utils.cpp
parent99408dd45ea4243d7be88d5d3c27a7267fdef6f8 (diff)
downloadrockbox-b7fe90aa364c98eb2d5260dce0078f7ad034f0a3.tar.gz
rockbox-b7fe90aa364c98eb2d5260dce0078f7ad034f0a3.tar.bz2
rockbox-b7fe90aa364c98eb2d5260dce0078f7ad034f0a3.zip
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/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp2
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);
}