VirtualBox

Changeset 94789 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
May 3, 2022 7:00:13 AM (3 years ago)
Author:
vboxsync
Message:

Main/MachineImpl: Fix registering an encrypted machine, bugref:9955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r94784 r94789  
    676676                    mData->mAccessError = com::ErrorInfo();
    677677
    678                     throw setError(VBOX_E_PASSWORD_INCORRECT,
    679                                    tr("Decryption of the machine {%RTuuid} failed. Incorrect or unknown password"),
    680                                    mData->pMachineConfigFile->uuid.raw());
     678                    setError(VBOX_E_PASSWORD_INCORRECT,
     679                             tr("Decryption of the machine {%RTuuid} failed. Incorrect or unknown password"),
     680                             mData->pMachineConfigFile->uuid.raw());
    681681                }
    682682                else
     
    10011001
    10021002                if (mData->pMachineConfigFile->enmParseState == settings::MachineConfigFile::ParseState_PasswordError)
    1003                     throw setError(VBOX_E_PASSWORD_INCORRECT,
    1004                                    tr("Config decryption of the machine {%RTuuid} failed. Incorrect or unknown password"),
    1005                                    mData->pMachineConfigFile->uuid.raw());
     1003                    rc = setError(VBOX_E_PASSWORD_INCORRECT,
     1004                                  tr("Config decryption of the machine {%RTuuid} failed. Incorrect or unknown password"),
     1005                                  mData->pMachineConfigFile->uuid.raw());
     1006                else
    10061007#endif
    1007 
    1008                 rc = i_loadMachineDataFromSettings(*mData->pMachineConfigFile,
    1009                                                    NULL /* const Guid *puuidRegistry */);
     1008                    rc = i_loadMachineDataFromSettings(*mData->pMachineConfigFile,
     1009                                                       NULL /* const Guid *puuidRegistry */);
    10101010                if (FAILED(rc)) throw rc;
    10111011            }
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