changeset 7353:d28f802ce914

8016063: getFinalAttributes should use FindClose Reviewed-by: alanb
author robm
date Thu, 06 Jun 2013 22:22:56 +0100
parents 986793409b2b
children f5f54e493a64
files src/windows/native/java/io/WinNTFileSystem_md.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/java/io/WinNTFileSystem_md.c	Wed Jun 05 21:01:02 2013 -0700
+++ b/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;
 }