8016063: getFinalAttributes should use FindClose
authorrobm
Thu, 06 Jun 2013 22:22:56 +0100
changeset 18144 b085ffaf3abb
parent 18143 b6ef7bd945ce
child 18145 39484c6a0c61
8016063: getFinalAttributes should use FindClose Reviewed-by: alanb
jdk/src/windows/native/java/io/WinNTFileSystem_md.c
--- a/jdk/src/windows/native/java/io/WinNTFileSystem_md.c	Wed Jun 05 21:01:02 2013 -0700
+++ b/jdk/src/windows/native/java/io/WinNTFileSystem_md.c	Thu Jun 06 22:22:56 2013 +0100
@@ -230,7 +230,7 @@
     } else if (GetLastError() == ERROR_SHARING_VIOLATION &&
                (h = FindFirstFileW(path, &wfd)) != INVALID_HANDLE_VALUE) {
         attr = getFinalAttributesIfReparsePoint(path, wfd.dwFileAttributes);
-        CloseHandle(h);
+        FindClose(h);
     }
     return attr;
 }