summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-10-12 06:06:07 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-10-12 06:06:07 (GMT)
commit99390f4d639e35f3b0606df4d2abbcd3879f128f (patch)
tree0c2dc1688b52b75d1d2fd07362609a623a2b9d90 /src/declarative
parent79c8df2e2e45e2eafa0789da0a84104b604fa0be (diff)
downloadQt-99390f4d639e35f3b0606df4d2abbcd3879f128f.zip
Qt-99390f4d639e35f3b0606df4d2abbcd3879f128f.tar.gz
Qt-99390f4d639e35f3b0606df4d2abbcd3879f128f.tar.bz2
Compile on MSVC2008
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index d768882..ec583f9 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -105,6 +105,7 @@
#ifdef Q_OS_WIN // for %APPDATA%
#include <qt_windows.h>
#include <qlibrary.h>
+#include <windows.h>
#define CSIDL_APPDATA 0x001a // <username>\Application Data
#endif
@@ -2202,9 +2203,7 @@ bool QDeclarative_isFileCaseCorrect(const QString &fileName)
#elif defined(Q_OS_WIN)
wchar_t buffer[1024];
- DWORD rv = ::GetShortPathName((wchar_t*)absolute.utf16(), buffer, 1024);
- if (rv == 0 || rv >= 1024) return true;
- rv = ::GetLongPathName(buffer, buffer, 1024);
+ DWORD rv = ::GetLongPathName((wchar_t*)absolute.utf16(), buffer, 1024);
if (rv == 0 || rv >= 1024) return true;
QString canonical((QChar *)buffer);