VirtualBox

Changeset 72584 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jun 17, 2018 3:28:08 PM (7 years ago)
Author:
vboxsync
Message:

Runtime/fatvfs.cpp: Fix returned status code, could return success when the bootsector signature is invalid causing a crash later on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/fatvfs.cpp

    r69977 r72584  
    56405640    {
    56415641        if (Buf.BootSector.uSignature != 0)
    5642             return RTErrInfoSetF(pErrInfo, rc, "No DOS bootsector signature: %#06x", Buf.BootSector.uSignature);
     5642            return RTErrInfoSetF(pErrInfo, VERR_VFS_UNKNOWN_FORMAT, "No DOS bootsector signature: %#06x", Buf.BootSector.uSignature);
    56435643        rc = rtFsFatVolTryInitDos1x(pThis, &Buf.BootSector, &Buf.ab[512], pErrInfo);
    56445644    }
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