VirtualBox

Changeset 82836 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 22, 2020 9:55:17 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/win: Enabled new RTFileSetSize implementation that works like more like posix wrt RTFILE_O_APPEND (a bit risky). ticketref:19003

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r82835 r82836  
    925925RTR3DECL(int) RTFileSetSize(RTFILE hFile, uint64_t cbSize)
    926926{
    927 #if 0
     927#if 1
    928928    HANDLE hNtFile  = (HANDLE)RTFileToNative(hFile);
    929929    HANDLE hDupFile = INVALID_HANDLE_VALUE;
  • trunk/src/VBox/Runtime/testcase/tstFile.cpp

    r82835 r82836  
    7676        RTTestIFailed("Read back #1 failed (%#zx + %#zx)", cbWrite1, cbWrite2);
    7777
    78 #ifndef RT_OS_WINDOWS
     78#if 1 //ndef RT_OS_WINDOWS
    7979    /*
    8080     * Truncate the file and write some more. This is problematic on windows.
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