[Pkg-owncloud-commits] [owncloud-client] 275/498: FolderWatcher Win: Use proper lang path handling in folder watcher.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:57 UTC 2015
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 bb1b1ab7e3c05fcd1e4e34fcc19aac8156bffe76
Author: Klaas Freitag <freitag at owncloud.com>
Date: Fri Jul 3 16:24:23 2015 +0200
FolderWatcher Win: Use proper lang path handling in folder watcher.
---
src/gui/folderwatcher_win.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gui/folderwatcher_win.cpp b/src/gui/folderwatcher_win.cpp
index 29b7f5d..4137ea0 100644
--- a/src/gui/folderwatcher_win.cpp
+++ b/src/gui/folderwatcher_win.cpp
@@ -15,6 +15,7 @@
#include <QDebug>
#include <QDir>
+#include "filesystem.h"
#include "folderwatcher.h"
#include "folderwatcher_win.h"
@@ -28,9 +29,10 @@ void WatcherThread::watchChanges(size_t fileNotifyBufferSize,
bool* increaseBufferSize)
{
*increaseBufferSize = false;
+ QString longPath = FileSystem::longWinPath(_path);
_handle = CreateFileW(
- (wchar_t*)_path.utf16(),
+ (wchar_t*) longPath.utf16(),
FILE_LIST_DIRECTORY,
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE,
NULL,
--
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