VirtualBox

Changeset 57533 in vbox


Ignore:
Timestamp:
Aug 25, 2015 10:41:45 AM (9 years ago)
Author:
vboxsync
Message:

tstVDIo: Fix for the out of memory case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/tstVDIo.cpp

    r57415 r57533  
    21792179        AssertPtr(pIt);
    21802180        PVDSTORAGE pStorage = (PVDSTORAGE)RTMemAllocZ(sizeof(VDSTORAGE));
    2181         if (!pStorage)
     2181        if (pStorage)
     2182        {
     2183            pStorage->pFile = pIt;
     2184            pStorage->pfnComplete = pfnCompleted;
     2185            *ppStorage = pStorage;
     2186        }
     2187        else
    21822188            rc = VERR_NO_MEMORY;
    2183 
    2184         pStorage->pFile = pIt;
    2185         pStorage->pfnComplete = pfnCompleted;
    2186         *ppStorage = pStorage;
    21872189    }
    21882190
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