From 952df2ffd6e081748837a91dc32d14aa61449e2b Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Thu, 24 Nov 2011 10:31:10 +0200 Subject: [PATCH] Fixed QFile::link behaviour for WinCE devices. In WEC7 both arguments given for ScCreateShortcut needs to be given in Windows format. Apparently older WinCE devices has accepted also Unix format but this is not anymore true for WEC7. The Windows format works for older WinCE versions as well. Change-Id: Ic1f394e20bae8ad42acb46929d3ff4af92daf310 Reviewed-by: Joerg Bornemann --- src/corelib/io/qfsfileengine_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp index d0676a0dcfb..5dc96ea8a2d 100644 --- a/src/corelib/io/qfsfileengine_win.cpp +++ b/src/corelib/io/qfsfileengine_win.cpp @@ -661,6 +661,7 @@ bool QFSFileEngine::link(const QString &newName) #endif // QT_NO_LIBRARY #else QString linkName = newName; + linkName.replace(QLatin1Char('/'), QLatin1Char('\\')); if (!linkName.endsWith(QLatin1String(".lnk"))) linkName += QLatin1String(".lnk"); QString orgName = fileName(AbsoluteName).replace(QLatin1Char('/'), QLatin1Char('\\'));