VirtualBox

Changeset 67274 in vbox for trunk


Ignore:
Timestamp:
Jun 6, 2017 1:47:18 PM (8 years ago)
Author:
vboxsync
Message:

RTVfsIoStrmZeroFill: Fixed wrong method test (pfnSkip instead of pfnZeroFill); use g_abRTZero64K instead of the heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r67272 r67274  
    30513051        while (cb > 0)
    30523052        {
    3053             size_t cbToWrite = (size_t)RT_MIN(cb, sizeof(g_abRTZero64K));
     3053            size_t cbToWrite = (size_t)RT_MIN(cb, (ssize_t)sizeof(g_abRTZero64K));
    30543054            RTVfsLockAcquireWrite(pThis->Base.hLock);
    30553055            rc = RTVfsIoStrmWrite(hVfsIos, g_abRTZero64K, cbToWrite, true /*fBlocking*/, NULL);
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