VirtualBox

Changeset 64606 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 8, 2016 6:30:40 PM (8 years ago)
Author:
vboxsync
Message:

Use RTFileSetSize, duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/TestBoxHelper.cpp

    r64605 r64606  
    153153
    154154            uint64_t cbReduced = cbWritten > _512M ? cbWritten - _512M : cbWritten / 2;
    155             rc = RTFileSetAllocationSize(hFile, cbReduced, RTFILE_ALLOC_SIZE_F_DEFAULT);
     155            rc = RTFileSetSize(hFile, cbReduced);
    156156            if (RT_FAILURE(rc))
    157157                rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "%s: Failed to reduce file size from %'RU64 to %'RU64 bytes: %Rrc\n",
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