windows: fix checking of CloseHandle return code in Java_java_io_FileCleanable_cleanupClose0

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 11
    • Component/s: core-libs
    • None
    • b20
    • windows

        The windows CloseHandle function returns zero on error. This has to be checked in Java_java_io_FileCleanable_cleanupClose0 to do a correct error checking.
        See the CloseHandle MSDN info :
        https://msdn.microsoft.com/de-de/library/windows/desktop/ms724211(v=vs.85).aspx
        "... If the function fails, the return value is zero. ... "

              Assignee:
              Matthias Baesken
              Reporter:
              Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: