From 0ba2ae5bc54297ca01039cc3d921f66dfd8dd9b7 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Wed, 16 Sep 2009 15:03:44 +0200 Subject: QGlobal: fix Windows error reporting before, we did not retrieve the detailed error message correctly on Windows. Reviewed-by: Joao --- src/corelib/global/qglobal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12