VirtualBox

Changeset 59593 in vbox for trunk


Ignore:
Timestamp:
Feb 5, 2016 1:21:15 PM (9 years ago)
Author:
vboxsync
Message:

tstVDIo: don't crash on pfnSetAllocationSize()

File:
1 edited

Legend:

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

    r59297 r59593  
    23042304}
    23052305
     2306static DECLCALLBACK(int) tstVDIoFileSetAllocationSize(void *pvUser, void *pStorage, uint64_t cbSize, uint32_t fFlags)
     2307{
     2308    return VERR_NOT_SUPPORTED;
     2309}
     2310
    23062311static DECLCALLBACK(int) tstVDIoFileWriteSync(void *pvUser, void *pStorage, uint64_t uOffset,
    23072312                                              const void *pvBuffer, size_t cbBuffer, size_t *pcbWritten)
     
    27722777    GlobTest.VDIfIo.pfnGetSize             = tstVDIoFileGetSize;
    27732778    GlobTest.VDIfIo.pfnSetSize             = tstVDIoFileSetSize;
     2779    GlobTest.VDIfIo.pfnSetAllocationSize   = tstVDIoFileSetAllocationSize;
    27742780    GlobTest.VDIfIo.pfnWriteSync           = tstVDIoFileWriteSync;
    27752781    GlobTest.VDIfIo.pfnReadSync            = tstVDIoFileReadSync;
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