aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-12-06 13:41:28 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2016-12-07 11:45:59 +0000
commitd9ccd494fd01529d5d5eee45cd004bd66930ef39 (patch)
tree067e3f012f4dd0058c40cbc2ef1f5edd32cde78f
parent5ff288a9b564624d88c99048f6f4904881c040fc (diff)
Fix language tests on Windows
FileInfo::exists() requires clean paths now. Change-Id: I40eb3273bd0a67174cc7e91c544e5e6cfb954890 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r--src/lib/corelib/tools/fileinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/fileinfo.cpp b/src/lib/corelib/tools/fileinfo.cpp
index dee37c7e9..a41d6887c 100644
--- a/src/lib/corelib/tools/fileinfo.cpp
+++ b/src/lib/corelib/tools/fileinfo.cpp
@@ -274,7 +274,7 @@ FileInfo::FileInfo(const QString &fileName)
if (!isAbsolute(filePath))
filePath = QDir::currentPath() + QDir::separator() + filePath;
- filePath = win32LongPathPrefix + QDir::toNativeSeparators(filePath);
+ filePath = win32LongPathPrefix + QDir::toNativeSeparators(QDir::cleanPath(filePath));
if (!GetFileAttributesEx(reinterpret_cast<const WCHAR*>(filePath.utf16()),
GetFileExInfoStandard, &m_stat))
{