VirtualBox

Changeset 16118 in vbox for trunk/src


Ignore:
Timestamp:
Jan 21, 2009 9:43:00 AM (16 years ago)
Author:
vboxsync
Message:

Main: Fixed %ls/%s and Utf8Str/Bstr mismatch in hard disk code.

File:
1 edited

Legend:

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

    r15596 r16118  
    11541154    HRESULT rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    11551155        BstrFmt (tr ("Creating dynamic hard disk storage unit '%ls'"),
    1156                  m.location.raw()),
     1156                 m.locationFull.raw()),
    11571157        FALSE /* aCancelable */);
    11581158    CheckComRCReturnRC (rc);
     
    12091209    HRESULT rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    12101210        BstrFmt (tr ("Creating fixed hard disk storage unit '%ls'"),
    1211                  m.location.raw()),
     1211                 m.locationFull.raw()),
    12121212        FALSE /* aCancelable */);
    12131213    CheckComRCReturnRC (rc);
     
    12701270
    12711271    if (mm.type == HardDiskType_Writethrough)
    1272         return setError (E_FAIL, tr ("Hard disk '%ls' is Writethrough"));
     1272        return setError (E_FAIL,
     1273            tr ("Hard disk '%ls' is Writethrough"),
     1274            m.locationFull.raw());
    12731275
    12741276    /* We want to be locked for reading as long as our diff child is being
     
    13311333        progress.createObject();
    13321334        rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    1333             BstrFmt (tr ("Creating a clone hard disk '%s'"),
    1334                      target->name().raw()),
     1335            BstrFmt (tr ("Creating clone hard disk '%ls'"),
     1336                     target->m.locationFull.raw()),
    13351337            FALSE /* aCancelable */);
    13361338        CheckComRCThrowRC (rc);
     
    20442046            rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    20452047                BstrFmt (tr ("Deleting hard disk storage unit '%ls'"),
    2046                          name().raw()),
     2048                         m.locationFull.raw()),
    20472049                FALSE /* aCancelable */);
    20482050            CheckComRCReturnRC (rc);
     
    21622164                        "with UUID {%RTuuid}. No differencing hard disks "
    21632165                        "based on it may be created until it is detached"),
    2164                     m.location.raw(), it->machineId.raw());
     2166                    m.locationFull.raw(), it->machineId.raw());
    21652167            }
    21662168
     
    21822184            rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    21832185                BstrFmt (tr ("Creating differencing hard disk storage unit '%ls'"),
    2184                          aTarget->name().raw()),
     2186                         aTarget->m.locationFull.raw()),
    21852187                FALSE /* aCancelable */);
    21862188            CheckComRCReturnRC (rc);
     
    24262428            progress.createObject();
    24272429            rc = progress->init (mVirtualBox, static_cast <IHardDisk2 *> (this),
    2428                 BstrFmt (tr ("Merging hard disk '%ls' to '%ls'"),
     2430                BstrFmt (tr ("Merging hard disk '%s' to '%s'"),
    24292431                         name().raw(), aChain->target()->name().raw()),
    24302432                FALSE /* aCancelable */);
     
    35353537            MergeChain *chain = task->d.chain.get();
    35363538
    3537 #if 1
     3539#if 0
    35383540            LogFlow (("*** MERGE forward = %RTbool\n", chain->isForward()));
    35393541#endif
     
    35803582                        if (RT_FAILURE (vrc))
    35813583                            throw vrc;
    3582 #if 1
     3584#if 0
    35833585                        LogFlow (("*** MERGE disk = %ls\n",
    35843586                                  (*it)->m.locationFull.raw()));
     
    35933595                    unsigned end = chain->isForward() ?
    35943596                        chain->size() - 1 : 0;
    3595 #if 1
     3597#if 0
    35963598                    LogFlow (("*** MERGE from %d to %d\n", start, end));
    35973599#endif
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