VirtualBox

Changeset 18066 in vbox


Ignore:
Timestamp:
Mar 18, 2009 2:16:06 PM (16 years ago)
Author:
vboxsync
Message:

Storage/Raw: fix crash when creating failed

File:
1 edited

Legend:

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

    r17970 r18066  
    275275    Assert(pImage);
    276276
    277     if (!(pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY))
    278         rawFlushImage(pImage);
    279277    if (pImage->File != NIL_RTFILE)
    280278    {
     279        if (!(pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY))
     280            rawFlushImage(pImage);
    281281        RTFileClose(pImage->File);
    282282        pImage->File = NIL_RTFILE;
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