Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41138

Error in the function errorMessageFromComError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 5.4.0
    • 5.3.1
    • Extras: Win, QPA: Windows
    • 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

        For Gerrit Dashboard: QTBUG-41138
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            lom2k Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes