VirtualBox

Changeset 85495 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jul 29, 2020 6:25:24 AM (4 years ago)
Author:
vboxsync
Message:

Runtime/fileio-posix.cpp: Fix for r139548, restore the old file offset before returning and return VERR_NOT_IMPLEMENTED instead of VERR_NOT_SUPPORTED as the Windows implementation returns the same currently and the caller might expect VERR_NOT_IMPLEMENTED but not VERR_NOT_SUPPORTED

File:
1 edited

Legend:

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

    r85492 r85495  
    789789     */
    790790    if (offLow == offHigh)
    791         return VERR_NOT_SUPPORTED;
     791    {
     792        rc = RTFileSeek(hFile, offOld, RTFILE_SEEK_BEGIN, NULL);
     793        if (RT_SUCCESS(rc))
     794            rc = VERR_NOT_IMPLEMENTED;
     795
     796        return rc;
     797    }
    792798
    793799    /*
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