VirtualBox

Changeset 79965 in vbox for trunk/src/VBox/Storage/CUE.cpp


Ignore:
Timestamp:
Jul 24, 2019 8:32:32 PM (5 years ago)
Author:
vboxsync
Message:

Storage: Added a desired format parameter to VDGetFormat() so Main can pass along the device type. Bumped the RAW backend down after the CUE and VISO to prevent (impossible) mixups of tiny files. Extended rawProbe() to look for a valid ISO-9660/UDF descriptor sequence on the image if the caller doesn't say it should be a floppy or hdd, only if that fail go by the extension. Note! the pfnProbe callback should probably get a score return parameter to indicate how confient the backend is about the probe result, as this would prevent the RAW backend from accidentally grabbing images which belongs to a plug-in. bugref:9151

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/CUE.cpp

    r78169 r79965  
    14321432/** @copydoc VDIMAGEBACKEND::pfnProbe */
    14331433static DECLCALLBACK(int) cueProbe(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
    1434                                   PVDINTERFACE pVDIfsImage, VDTYPE *penmType)
    1435 {
    1436     RT_NOREF1(pVDIfsDisk);
     1434                                  PVDINTERFACE pVDIfsImage, VDTYPE enmDesiredType, VDTYPE *penmType)
     1435{
     1436    RT_NOREF(pVDIfsDisk, enmDesiredType);
    14371437    LogFlowFunc(("pszFilename=\"%s\" pVDIfsDisk=%#p pVDIfsImage=%#p\n", pszFilename, pVDIfsDisk, pVDIfsImage));
    14381438    int rc = VINF_SUCCESS;
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