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