VirtualBox

Changeset 25789 in vbox


Ignore:
Timestamp:
Jan 12, 2010 6:33:33 PM (15 years ago)
Author:
vboxsync
Message:

Main: build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r25786 r25789  
    18501850        {
    18511851            const MyHardDiskAttachment &mhda = *itM;
    1852             rc2 = mVirtualBox->OpenSession(session, mhda.bstrUuid);
     1852            Bstr bstrUuid(mhda.bstrUuid);           // make a copy, Windows can't handle const Bstr
     1853            rc2 = mVirtualBox->OpenSession(session, bstrUuid);
    18531854            if (SUCCEEDED(rc2))
    18541855            {
     
    18821883             ++itID)
    18831884        {
    1884             const Bstr &bstrGuid = *itID;
     1885            Bstr bstrGuid = *itID;      // make a copy, Windows can't handle const Bstr
    18851886            ComPtr<IMachine> failedMachine;
    18861887            rc2 = mVirtualBox->UnregisterMachine(bstrGuid, failedMachine.asOutParam());
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