Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.3.1
-
None
-
qtwinextras: c197dffefddb6d6dd2136e583b6ab28aa5f01dfa (5.4, 5.9.2014)
Description
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);
'message' argument should be a pointer to pointer because uses FORMAT_MESSAGE_ALLOCATE_BUFFER flag: (TCHAR*)&message
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-41138 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
94043,2 | Fix errorMessageFromComError(). | 5.4 | qt/qtwinextras | Status: MERGED | +2 | 0 |
408527,1 | Fix errorMessageFromComError() | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
408530,2 | Fix errorMessageFromComError() | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |