(ch) FileDispatcherImpl.truncate0 should use SetFileInformationByHandle [win]

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • b54
    • windows

        On Windows FileDispatcherImpl.truncate0 is implemented as two API calls: SetFilePointer() and subsequent SetEndOfFile().

        Starting with Vista, the same result can be achieved by a single call to SetFileInformationByHandle() without changing the file pointer. This would make the code a bit clearer.

              Assignee:
              Ivan Gerasimov
              Reporter:
              Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: