VirtualBox

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


Ignore:
Timestamp:
Mar 13, 2009 3:13:02 PM (16 years ago)
Author:
vboxsync
Message:

OVF: fix windows burns

File:
1 edited

Legend:

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

    r17832 r17833  
    29632963            // we need the following for the XML
    29642964            uint64_t cbFile = 0;        // actual file size
    2965             rc = pTargetDisk->GetSize(&cbFile);
     2965            rc = pTargetDisk->COMGETTER(Size)(&cbFile);
    29662966            if (FAILED(rc)) throw rc;
    29672967
    29682968            ULONG64 cbCapacity = 0;     // size reported to guest
    2969             rc = pTargetDisk->GetLogicalSize(&cbCapacity);
     2969            rc = pTargetDisk->COMGETTER(LogicalSize)(&cbCapacity);
    29702970            if (FAILED(rc)) throw rc;
    29712971            // capacity is reported in megabytes, so...
     
    29822982            pelmFile->setAttribute("ovf:href", strTargetFileNameOnly);
    29832983            pelmFile->setAttribute("ovf:id", strFileRef);
    2984             pelmFile->setAttribute("ovf:size", Utf8StrFmt("%RI64", cbFile).c_str()); // @todo
     2984            pelmFile->setAttribute("ovf:size", Utf8StrFmt("%RI64", cbFile).c_str());
    29852985
    29862986            // add disk to XML Disks section
    29872987            // <Disk ovf:capacity="8589934592" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/specifications/vmdk.html#sparse"/>
    29882988            xml::ElementNode *pelmDisk = pelmDiskSection->createChild("Disk");
    2989             pelmDisk->setAttribute("ovf:capacity", Utf8StrFmt("%RI64", cbCapacity).c_str()); // @todo
     2989            pelmDisk->setAttribute("ovf:capacity", Utf8StrFmt("%RI64", cbCapacity).c_str());
    29902990            pelmDisk->setAttribute("ovf:diskId", strDiskID);
    29912991            pelmDisk->setAttribute("ovf:fileRef", strFileRef);
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