~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Storage/VMDK.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
941
941
        rc = RTZipDecompress(pZip, pvBuf, cbToRead, &cbActuallyRead);
942
942
        RTZipDecompDestroy(pZip);
943
943
        if (RT_FAILURE(rc))
 
944
        {
 
945
            if (rc == VERR_ZIP_CORRUPTED)
 
946
                rc = vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: Compressed image is corrupted '%s'"), pExtent->pszFullname);
944
947
            return rc;
 
948
        }
945
949
        if (cbActuallyRead != cbToRead)
946
950
            rc = VERR_VD_VMDK_INVALID_FORMAT;
947
951
        return rc;