VirtualBox

Changeset 71997 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 24, 2018 8:05:09 AM (7 years ago)
Author:
vboxsync
Message:

bugref:8345. Small fix in the ErrorInfoItem() constructor.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImplMoveVM.h

    r71990 r71997  
    6565    struct ErrorInfoItem
    6666    {
    67         ErrorInfoItem(unsigned int aCode, const char* aDescription):
     67        ErrorInfoItem(HRESULT aCode, const char* aDescription):
    6868            m_code(aCode),
    6969            m_description(aDescription == NULL ? "There is no description" : aDescription)
  • trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp

    r71996 r71997  
    190190                Utf8StrFmt errorDesc("Can't create a test file test.txt in the %s. Check the access rights of "
    191191                                     "the destination folder.", strTargetFolder.c_str());
    192                 errorsList.push_back(ErrorInfoItem(vrc, errorDesc.c_str()));
     192                errorsList.push_back(ErrorInfoItem(HRESULT(vrc), errorDesc.c_str()));
    193193                rc = m_pMachine->setError(vrc, m_pMachine->tr(errorDesc.c_str()));
    194194
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