fix directory separators for WinRT
internally we always use forward slashes Change-Id: I0573d63b993bb76bc5798ee060fe9bdfb7304658 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
parent
f7f9126ed7
commit
7ea584f830
@ -1308,7 +1308,7 @@ QString QFileSystemEngine::tempPath()
|
|||||||
HSTRING path;
|
HSTRING path;
|
||||||
if (FAILED(tempFolderItem->get_Path(&path)))
|
if (FAILED(tempFolderItem->get_Path(&path)))
|
||||||
return ret;
|
return ret;
|
||||||
ret = QString::fromWCharArray(WindowsGetStringRawBuffer(path, nullptr));
|
ret = QDir::fromNativeSeparators(QString::fromWCharArray(WindowsGetStringRawBuffer(path, nullptr)));
|
||||||
#endif // Q_OS_WINRT
|
#endif // Q_OS_WINRT
|
||||||
if (ret.isEmpty()) {
|
if (ret.isEmpty()) {
|
||||||
#if !defined(Q_OS_WINCE)
|
#if !defined(Q_OS_WINCE)
|
||||||
|
Loading…
Reference in New Issue
Block a user