summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2009-09-16 13:03:44 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2009-09-16 14:44:28 (GMT)
commit0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7 (patch)
tree05a9a38a679f16d7b5242914a37a2b5945ad1ab8 /src/corelib/global
parent0d5f6cdb1dbe67ce66b56f8cd4974a1c3199f1b2 (diff)
downloadQt-0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7.zip
Qt-0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7.tar.gz
Qt-0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7.tar.bz2
QGlobal: fix Windows error reporting
before, we did not retrieve the detailed error message correctly on Windows. Reviewed-by: Joao
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 9909b7b..1d29b3b 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -2065,7 +2065,7 @@ QString qt_error_string(int errorCode)
NULL,
errorCode,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- string,
+ (LPWSTR)&string,
0,
NULL);
ret = QString::fromWCharArray(string);