VirtualBox

Changeset 6328 in vbox


Ignore:
Timestamp:
Jan 10, 2008 2:48:35 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27210
Message:

Fix incorrect assertion for HDD prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r6326 r6328  
    802802                            /* Report the format name. */
    803803                            RTPathStripExt(pPluginDirEntry->szName);
     804                            AssertBreak(strlen(pPluginDirEntry->szName) >= VBOX_HDDFORMAT_PLUGIN_PREFIX_LENGTH,
     805                                        rc = VERR_INVALID_NAME);
     806
    804807                            char *pszFormat = NULL;
    805 
    806808                            pszFormat = RTStrDup(pPluginDirEntry->szName + VBOX_HDDFORMAT_PLUGIN_PREFIX_LENGTH);
    807809                            if (!pszFormat)
    808810                                rc = VERR_NO_MEMORY;
    809811
    810                             AssertBreak(strlen(pszFormat) >= VBOX_HDDFORMAT_PLUGIN_PREFIX_LENGTH,
    811                                         rc = VERR_INVALID_NAME);
    812812                            *ppszFormat = pszFormat;
    813813                        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette