VirtualBox

Changeset 9891 in vbox


Ignore:
Timestamp:
Jun 24, 2008 10:17:01 AM (16 years ago)
Author:
vboxsync
Message:

Print error msg containing the detected raw disk size if it's not valid. Much better than the generic invalid parameter error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r9856 r9891  
    908908#endif
    909909
     910    /* Check whether cbSize is actually sensible. */
     911    if (!cbSize || cbSize % 512)
     912    {
     913        RTPrintf("Detected size of raw disk '%s' is %s, an invalid value\n", rawdisk.raw(), cbSize);
     914        return VERR_INVALID_PARAMETER;
     915    }
     916
    910917    PVBOXHDD pDisk = NULL;
    911918    VBOXHDDRAW RawDescriptor;
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