Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2015-07-03 17:24:23 +0300
committerKlaas Freitag <freitag@owncloud.com>2015-07-08 19:13:40 +0300
commitbb1b1ab7e3c05fcd1e4e34fcc19aac8156bffe76 (patch)
treee86bc1f9709a3276a58875ce78d94402860a679a /src/gui/folderwatcher_win.cpp
parentd303df7fa0186c81c8de13583ddf4cb38cf556c9 (diff)
FolderWatcher Win: Use proper lang path handling in folder watcher.
Diffstat (limited to 'src/gui/folderwatcher_win.cpp')
-rw-r--r--src/gui/folderwatcher_win.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/folderwatcher_win.cpp b/src/gui/folderwatcher_win.cpp
index 29b7f5d25..4137ea0f4 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,