Fix compile error on MSVC2008
authorShane Kearns <shane.kearns@accenture.com>
Fri, 2 Sep 2011 17:39:16 +0000 (18:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Sep 2011 18:44:30 +0000 (20:44 +0200)
Change-Id: I4f6192b9db601076688b52bfd794ea80a7346729
Reviewed-on: http://codereview.qt.nokia.com/4153
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
tests/auto/qfileinfo/tst_qfileinfo.cpp

index 696ab42..92046d3 100644 (file)
@@ -1388,7 +1388,7 @@ void tst_QFileInfo::ntfsJunctionPointsAndSymlinks_data()
             wchar_t errstr[0x100];
             DWORD count = FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM,
                 0, err, 0, errstr, 0x100, 0);
-            QString error(QString::fromUtf16(errstr, count));
+            QString error(QString::fromWCharArray (errstr, count));
             qWarning() << error;
             //we need at least one data set for the test not to assert fail when skipping _data function
             QDir target("target");