changeset 6625:4065ac9fa4b9

8016063: getFinalAttributes should use FindClose Reviewed-by: alanb
author robm
date Thu, 06 Jun 2013 22:22:56 +0100
parents 6e8c218b8eb8
children 80fefc247e3d
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	Tue May 28 16:35:17 2013 +0100
+++ 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;
 }