summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-07 18:16:15 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-07 18:17:20 +0200
commitdf5cdc6d9a22ae11d607e9359a3bb9a80596fdb6 (patch)
tree16a8dca6c406d7fce9064c09c0b112f3b35ebf7a /src
parent14a8f1fb7414885cc3868b1d27699b5a0d59e7ee (diff)
QDesktopServices compile fix for Windows CE
There's no CSIDL_LOCAL_APPDATA on Windows CE. Use CSIDL_APPDATA instead. Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r--src/gui/util/qdesktopservices_win.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/util/qdesktopservices_win.cpp b/src/gui/util/qdesktopservices_win.cpp
index bf29870015..4ecef97e02 100644
--- a/src/gui/util/qdesktopservices_win.cpp
+++ b/src/gui/util/qdesktopservices_win.cpp
@@ -186,7 +186,11 @@ QString QDesktopServices::storageLocation(StandardLocation type)
switch (type) {
case DataLocation:
+#if defined Q_WS_WINCE
+ if (SHGetSpecialFolderPath(0, path, CSIDL_APPDATA, FALSE))
+#else
if (SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, FALSE))
+#endif
result = QString::fromWCharArray(path);
if (!QCoreApplication::organizationName().isEmpty())
result = result + QLatin1String("\\") + QCoreApplication::organizationName();