VirtualBox

Changeset 14292 in vbox


Ignore:
Timestamp:
Nov 18, 2008 12:01:42 PM (16 years ago)
Author:
vboxsync
Message:

Storage/VMDK: fix vmdkGetFileSize, copy/paste bug and incorrect handling of monolithic files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r14281 r14292  
    44934493            if (RT_SUCCESS(rc))
    44944494                cb += cbFile;
    4495             for (unsigned i = 0; i <= pImage->cExtents; i++)
     4495        }
     4496        for (unsigned i = 0; i <= pImage->cExtents; i++)
     4497        {
     4498            if (pImage->pExtents[i].pFile != NULL)
    44964499            {
    4497                 rc = vmdkFileGetSize(pImage->pFile, &cbFile);
     4500                int rc = vmdkFileGetSize(pImage->pExtents[i].pFile, &cbFile);
    44984501                if (RT_SUCCESS(rc))
    44994502                    cb += cbFile;
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