VirtualBox

Changeset 15673 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 18, 2008 11:28:00 PM (16 years ago)
Author:
vboxsync
Message:

VDI: use VERR_VD_VDI_INVALID_HEADER instead of VERR_VD_VDI_INVALID_SIGNATURE. VDGetFormat uses the return codes to check fir valid images and woul break outside of the loop on non VDI images which have another format but the backend is behind the VDI backend

File:
1 edited

Legend:

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

    r15366 r15673  
    117117{
    118118    if (pPreHdr->u32Signature != VDI_IMAGE_SIGNATURE)
    119         return VERR_VD_VDI_INVALID_SIGNATURE;
     119        return VERR_VD_VDI_INVALID_HEADER;
    120120
    121121    if (    VDI_GET_VERSION_MAJOR(pPreHdr->u32Version) != VDI_IMAGE_VERSION_MAJOR
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