VirtualBox

Changeset 84054 in vbox for trunk/src/VBox/VMM/VMMR3/VM.cpp


Ignore:
Timestamp:
Apr 28, 2020 4:05:00 PM (5 years ago)
Author:
vboxsync
Message:

IPRT,++: Apply bldprog-strtab.h and friends to the IPRT status message database (errmsg.cpp) to reduce size. The interface (RTErrMsg*) has been reworked as we no longer have C-strings in the database, but 'compressed' string w/o zero terminators. bugref:9726

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r82990 r84054  
    310310                default:
    311311                    if (VMR3GetErrorCount(pUVM) == 0)
    312                         pszError = RTErrGetFull(rc);
     312                    {
     313                        pszError = (char *)alloca(1024);
     314                        RTErrQueryMsgFull(rc, (char *)pszError, 1024, false /*fFailIfUnknown*/);
     315                    }
    313316                    else
    314317                        pszError = NULL; /* already set. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette