VirtualBox

Ignore:
Timestamp:
Mar 13, 2019 8:05:59 PM (6 years ago)
Author:
vboxsync
Message:

FsPerf: Borrow open action tests from tstRTFileOpenEx-1. ticketref:9276 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp

    r77690 r77692  
    736736                while (cbExist > 0)
    737737                {
    738                     size_t cbToWrite = strlen(pszFilename);
    739                     if ((ssize_t)cbToWrite > cbExist)
     738                    int cbToWrite = (int)strlen(pszFilename);
     739                    if (cbToWrite > cbExist)
    740740                        cbToWrite = cbExist;
    741741                    rc = RTFileWrite(hFile, pszFilename, cbToWrite, NULL);
     
    786786        while (cbNext > 0)
    787787        {
    788             size_t cbToWrite = strlen(pszFilename);
    789             if ((ssize_t)cbToWrite > cbNext)
     788            int cbToWrite = (int)strlen(pszFilename);
     789            if (cbToWrite > cbNext)
    790790                cbToWrite = cbNext;
    791791            rc = RTFileWrite(hFile, pszFilename, cbToWrite, 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