[Pkg-owncloud-commits] [owncloud-client] 93/219: fFx Utility::freeDiskSpace for win32
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 11 14:43:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit f27182ae054da442e56caf7538592181e008d9a4
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Fri Sep 12 16:08:25 2014 +0200
fFx Utility::freeDiskSpace for win32
---
src/mirall/utility.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp
index 09f9c75..4e38a8d 100644
--- a/src/mirall/utility.cpp
+++ b/src/mirall/utility.cpp
@@ -184,8 +184,7 @@ qint64 Utility::freeDiskSpace(const QString &path, bool *ok)
#elif defined(Q_OS_WIN)
ULARGE_INTEGER freeBytes;
freeBytes.QuadPart = 0L;
- QString drive = QDir().absoluteFilePath(path).left(2);
- if( !GetDiskFreeSpaceEx( reinterpret_cast<const wchar_t *>(drive.utf16()), &freeBytes, NULL, NULL ) ) {
+ if( !GetDiskFreeSpaceEx( reinterpret_cast<const wchar_t *>(path.utf16()), &freeBytes, NULL, NULL ) ) {
if (ok) *ok = false;
}
return freeBytes.QuadPart;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list