Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8205416

windows: fix checking of CloseHandle return code in Java_java_io_FileCleanable_cleanupClose0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • 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. ... "

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

                Created:
                Updated:
                Resolved: