diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-09-04 16:22:59 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-09-04 17:54:31 +0200 |
commit | c197dffefddb6d6dd2136e583b6ab28aa5f01dfa (patch) | |
tree | 40fcef9f1ae3eeaec702033d0af4a69ff93f5c70 | |
parent | bfb23bc5e0e39c80b9b1e51331bd20ab33c86c0c (diff) |
Fix errorMessageFromComError().v5.4.0-alpha1
Task-number: QTBUG-41138
Change-Id: I86738bb2bdd1fb3064a7894922869bca2a1b4581
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r-- | src/winextras/qwinfunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winextras/qwinfunctions.cpp b/src/winextras/qwinfunctions.cpp index 15d2cfc..ed32934 100644 --- a/src/winextras/qwinfunctions.cpp +++ b/src/winextras/qwinfunctions.cpp @@ -216,7 +216,7 @@ static inline QString errorMessageFromComError(const _com_error &comError) TCHAR *message = Q_NULLPTR; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, comError.Error(), MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT), - message, 0, NULL); + reinterpret_cast<LPWSTR>(&message), 0, NULL); if (message) { const QString result = QString::fromWCharArray(message).trimmed(); LocalFree((HLOCAL)message); |