VirtualBox

Ignore:
Timestamp:
Oct 15, 2008 8:55:16 PM (16 years ago)
Author:
vboxsync
Message:

Storage: Replace the assertions in the construction code with runtime errors because it is possible that hard disks are not accessible. Also fix a assertion because of a unitiallized semaphore in the IDE controller code

File:
1 edited

Legend:

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

    r12892 r13303  
    811811        else
    812812        {
    813            AssertMsgFailed(("Failed to open image '%s' rc=%Rrc\n", pszName, rc));
     813           rc = PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
     814                                    N_("Failed to open image '%s' in %s mode rc=%Rrc\n"), pszName,
     815                                    (uOpenFlags & VD_OPEN_FLAGS_READONLY) ? "readonly" : "read-write", rc);
    814816           break;
    815817        }
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